t6042: Ensure rename/rename conflicts leave index and workdir in sane state
[gitweb.git] / transport.c
index a02f79aae3d91ea4109d21a9ed9ca2d962125375..69dae711037ea7a54d86910932d74ac2b24b57fd 100644 (file)
@@ -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). */