mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
remote: Remove unnecessary call
`git_refspec_is_negative()` is already called by `git_refspec_src_matches_negative()`, so should not be necessary here.
This commit is contained in:
@@ -2635,7 +2635,7 @@ git_refspec *git_remote__matching_refspec(git_remote *remote, const char *refnam
|
||||
if (spec->push)
|
||||
continue;
|
||||
|
||||
if (git_refspec_is_negative(spec) && git_refspec_src_matches_negative(spec, refname))
|
||||
if (git_refspec_src_matches_negative(spec, refname))
|
||||
return NULL;
|
||||
|
||||
if (git_refspec_src_matches(spec, refname))
|
||||
|
||||
Reference in New Issue
Block a user