diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-05-30 09:09:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-30 09:09:41 +0200 |
commit | 5b42477b59886a85d4b49a60313f9b9d4a0d576f (patch) | |
tree | 55e42d432085f0afec9a5bc9f4251adcf1dcbfa5 /transport.c | |
parent | Merge branch 'bc/maint-submodule-fix-parked' into maint (diff) | |
parent | read_gitfile_gently: use ssize_t to hold read result (diff) | |
download | git-5b42477b59886a85d4b49a60313f9b9d4a0d576f.tar.xz git-5b42477b59886a85d4b49a60313f9b9d4a0d576f.zip |
Merge branch 'jm/maint-misc-fix' into maint
* jm/maint-misc-fix:
read_gitfile_gently: use ssize_t to hold read result
remove tests of always-false condition
rerere.c: diagnose a corrupt MERGE_RR when hitting EOF between TAB and '\0'
Diffstat (limited to 'transport.c')
-rw-r--r-- | transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transport.c b/transport.c index a02f79aae3..69dae71103 100644 --- a/transport.c +++ b/transport.c @@ -156,7 +156,7 @@ static void set_upstreams(struct transport *transport, struct ref *refs, continue; if (!ref->peer_ref) continue; - if (!ref->new_sha1 || is_null_sha1(ref->new_sha1)) + if (is_null_sha1(ref->new_sha1)) continue; /* Follow symbolic refs (mainly for HEAD). */ |