Skip to content

Conversation

@dtrifiro
Copy link
Contributor

@dtrifiro dtrifiro commented Dec 14, 2022

adds dummy implementation for pygit2 and gitpython

In some cases, switching backends (from dulwich) would result in AttributeNotFoundError due to missing implementation in pygit2 and gitpython.

@dtrifiro dtrifiro force-pushed the add-check-ref-format branch from 7690922 to 8233483 Compare December 14, 2022 16:10
@dtrifiro dtrifiro changed the title pygit2: add check_ref_format (raise NotImplementedError) add check_ref_format abstract method Dec 14, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 14, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.69%. Comparing base (52b5b4f) to head (67d318a).
⚠️ Report is 248 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #158      +/-   ##
==========================================
+ Coverage   81.66%   81.69%   +0.02%     
==========================================
  Files          25       25              
  Lines        3404     3408       +4     
  Branches      588      589       +1     
==========================================
+ Hits         2780     2784       +4     
  Misses        542      542              
  Partials       82       82              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dtrifiro dtrifiro requested a review from daavoo December 14, 2022 16:24
@dtrifiro dtrifiro enabled auto-merge (rebase) December 14, 2022 16:24
@dtrifiro dtrifiro force-pushed the add-check-ref-format branch from a0a87a4 to 67d318a Compare December 29, 2022 14:47
@dtrifiro dtrifiro requested a review from skshetry December 29, 2022 14:47
Comment on lines +393 to +395
@abstractmethod
def check_ref_format(self, refname: str) -> bool:
"""Check if a reference name is well formed."""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the cli git analog?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some context in the original message

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, didn't know that one even exists. Good to know, thank you!

@dtrifiro dtrifiro merged commit 14ca720 into treeverse:main Jan 11, 2023
@dtrifiro dtrifiro deleted the add-check-ref-format branch January 11, 2023 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants