summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6d15987)
raw | patch | inline | side by side (parent: 6d15987)
author | Junio C Hamano <junkio@cox.net> | |
Sat, 23 Sep 2006 04:41:49 +0000 (21:41 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 23 Sep 2006 04:41:49 +0000 (21:41 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c | patch | blob | history |
index 5fdf9c4139f81d37be932c4a029fa5fa29cdc62d..2cef2b4f0e8da19049c30a57199c27b100998c90 100644 (file)
--- a/refs.c
+++ b/refs.c
return lock;
}
-static struct ref_lock *lock_ref_sha1_basic(const char *ref,
- int plen,
- const unsigned char *old_sha1, int mustexist)
+static struct ref_lock *lock_ref_sha1_basic(const char *ref, const unsigned char *old_sha1, int mustexist)
{
char *ref_file;
const char *orig_ref = ref;
if (check_ref_format(ref))
return NULL;
strcpy(refpath, mkpath("refs/%s", ref));
- return lock_ref_sha1_basic(refpath, strlen(refpath),
- old_sha1, mustexist);
+ return lock_ref_sha1_basic(refpath, old_sha1, mustexist);
}
struct ref_lock *lock_any_ref_for_update(const char *ref,
const unsigned char *old_sha1, int mustexist)
{
- return lock_ref_sha1_basic(ref, strlen(ref), old_sha1, mustexist);
+ return lock_ref_sha1_basic(ref, old_sha1, mustexist);
}
void unlock_ref(struct ref_lock *lock)