mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Ignore funny refname sent from remote
This allows the remote side (most notably, upload-pack) to show additional information without affecting the downloader. Peek-remote does not ignore them -- this is to make it useful for Pasky's automatic tag following. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@@ -81,7 +81,7 @@ static int fetch_pack(int fd[2], int nr_match, char **match)
|
||||
int status;
|
||||
pid_t pid;
|
||||
|
||||
get_remote_heads(fd[0], &ref, nr_match, match);
|
||||
get_remote_heads(fd[0], &ref, nr_match, match, 1);
|
||||
if (!ref) {
|
||||
packet_flush(fd[1]);
|
||||
die("no matching remote head");
|
||||
|
||||
Reference in New Issue
Block a user