diff options
author | Junio C Hamano <junkio@cox.net> | 2006-09-27 01:09:18 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-27 01:42:44 -0700 |
commit | 4431fcc4b134ae501e3e57dc568ae4f031e57898 (patch) | |
tree | 572af9e0e6b4e387af2c71e60c94953350d28826 /fetch.c | |
parent | e9800b28c24465377dc2b8e26b322d362912647c (diff) | |
download | git-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |