diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-19 09:10:38 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-19 09:10:38 -0700 |
commit | 8090c08e1e90274d35bbf06238d2933759f3a1bb (patch) | |
tree | 45ad709ea88fbdfe53a2614057cbb69f0b75033b | |
parent | ff62b7f37899de2faa88cbb5be1f3bcfa246012c (diff) | |
parent | 70e1a880a3dc3648fbed463044358a4a83116743 (diff) | |
download | git-8090c08e1e90274d35bbf06238d2933759f3a1bb.tar.gz |
Merge early part of 'sp/reflog' branch
-rw-r--r-- | refs.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -220,12 +220,9 @@ static char *ref_lock_file_name(const char *ref) int get_ref_sha1(const char *ref, unsigned char *sha1) { - const char *filename; - if (check_ref_format(ref)) return -1; - filename = git_path("refs/%s", ref); - return read_ref(filename, sha1); + return read_ref(git_path("refs/%s", ref), sha1); } static int lock_ref_file(const char *filename, const char *lock_filename, |