Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
"diff --check" should affect exit status
[gitweb.git]
/
transport.c
diff --git
a/transport.c
b/transport.c
index 3eb93b4875ed0e4884088565a0faa45cc3d287e3..58e66f6c11798dac416941ce5ad3dbae91c31a06 100644
(file)
--- a/
transport.c
+++ b/
transport.c
@@
-659,7
+659,7
@@
static int fetch_refs_via_pack(struct transport *transport,
free(heads);
free_refs(refs);
free(dest);
- return
0
;
+ return
(refs ? 0 : -1)
;
}
static int git_transport_push(struct transport *transport, int refspec_nr, const char **refspec, int flags)