提交 e33b2ef8 编写于 作者: L Linus Torvalds

git-send-pack: Fix duplicate refname match

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.
上级 b1de9de2
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册