Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fetch-pack: report missing refs even if no existing refs were received
[gitweb.git]
/
builtin
/
fetch-pack.c
diff --git
a/builtin/fetch-pack.c
b/builtin/fetch-pack.c
index fb2a423b5199b807c04ab24e82c90c3c3fbe86b2..3d388b53e3b52be1757146de9e72ba3d81c51673 100644
(file)
--- a/
builtin/fetch-pack.c
+++ b/
builtin/fetch-pack.c
@@
-1021,7
+1021,7
@@
int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
return 1;
ret = !ref;
- if (
ref &&
sought.nr) {
+ if (sought.nr) {
/* If the heads to pull were given, we should have
* consumed all of them by matching the remote.
* Otherwise, 'git fetch remote no-such-ref' would