Skip to content

Commit

Permalink
git-send-pack: Fix duplicate refname match
Browse files Browse the repository at this point in the history
Cut-and-paste dup noticed by Junio.  It's not even harmless, since a
match also causes that match to be invalidated, so this made it
impossible to update an existing branch by name.

I'd only tested the case of "ref doesn't exist at all on the other end",
which worked fine.
  • Loading branch information
Linus Torvalds committed Jul 12, 2005
1 parent b1de9de commit e33b2ef
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions send-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,6 @@ static int send_pack(int in, int out, int nr_match, char **match)
if (read_ref(name, new_sha1) < 0)
continue;

if (nr_match && !path_match(name, nr_match, match))
continue;

if (!memcmp(ref->old_sha1, new_sha1, 20)) {
fprintf(stderr, "'%s' unchanged\n", name);
continue;
Expand Down

0 comments on commit e33b2ef

Please sign in to comment.