Skip to content

Commit 83994da

Browse files
committed
remote: Remove unnecessary call
`git_refspec_is_negative()` is already called by `git_refspec_src_matches_negative()`, so should not be necessary here.
1 parent f7f30ec commit 83994da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgit2/remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2635,7 +2635,7 @@ git_refspec *git_remote__matching_refspec(git_remote *remote, const char *refnam
26352635
if (spec->push)
26362636
continue;
26372637

2638-
if (git_refspec_is_negative(spec) && git_refspec_src_matches_negative(spec, refname))
2638+
if (git_refspec_src_matches_negative(spec, refname))
26392639
return NULL;
26402640

26412641
if (git_refspec_src_matches(spec, refname))

0 commit comments

Comments
 (0)