projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] git-merge-cache -q doesn't complain about failing merge program
[git.git]
/
send-pack.c
diff --git
a/send-pack.c
b/send-pack.c
index
2a7ab2d
..
9b4be61
100644
(file)
--- a/
send-pack.c
+++ b/
send-pack.c
@@
-134,7
+134,8
@@
static int ref_newer(const unsigned char *new_sha1, const unsigned char *old_sha
return 0;
list = NULL;
commit_list_insert(new, &list);
- while ((new = pop_most_recent_commit(&list, 1)) != NULL) {
+ while (list) {
+ new = pop_most_recent_commit(&list, 1);
if (new == old)
return 1;
}