aboutsummaryrefslogtreecommitdiff
path: root/fetch.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-27 01:09:18 -0700
committerJunio C Hamano <junkio@cox.net>2006-09-27 01:42:44 -0700
commit4431fcc4b134ae501e3e57dc568ae4f031e57898 (patch)
tree572af9e0e6b4e387af2c71e60c94953350d28826 /fetch.c
parente9800b28c24465377dc2b8e26b322d362912647c (diff)
downloadgit-4431fcc4b134ae501e3e57dc568ae4f031e57898.tar.gz
git-4431fcc4b134ae501e3e57dc568ae4f031e57898.tar.xz
Clean-up lock-ref implementation
This drops "mustexist" parameter lock_ref_sha1() and lock_any_ref_forupdate() functions take. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch.c')
-rw-r--r--fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch.c b/fetch.c
index a2cbdfba8..c426c0499 100644
--- a/fetch.c
+++ b/fetch.c
@@ -266,7 +266,7 @@ int pull(int targets, char **target, const char **write_ref,
if (!write_ref || !write_ref[i])
continue;
- lock[i] = lock_ref_sha1(write_ref[i], NULL, 0);
+ lock[i] = lock_ref_sha1(write_ref[i], NULL);
if (!lock[i]) {
error("Can't lock ref %s", write_ref[i]);
goto unlock_and_fail;