Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
lock_ref: inform callers of unavailable ref
[gitweb.git]
/
http-push.c
diff --git
a/http-push.c
b/http-push.c
index 5138224cc372482fb60afd350fa40e37d019f367..9da14201b158f9118c1ece8519672875d4bb96e2 100644
(file)
--- a/
http-push.c
+++ b/
http-push.c
@@
-1415,8
+1415,9
@@
static void remove_locks(void)
fprintf(stderr, "Removing remote locks...\n");
while (lock) {
+ struct remote_lock *next = lock->next;
unlock_remote(lock);
- lock =
lock->
next;
+ lock = next;
}
}