diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-17 17:34:01 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-17 17:34:01 -0700 |
commit | 78bc2e1552ed6e2829c2ffac83a69bea6ac26ee8 (patch) | |
tree | dc180c898bff15c5c9a993e25951fc124da7952e | |
parent | Merge branch 'jc/apply' into next (diff) | |
parent | Remove unnecessary local in get_ref_sha1. (diff) | |
download | tgif-78bc2e1552ed6e2829c2ffac83a69bea6ac26ee8.tar.xz |
Merge branch 'sp/reflog' into next
* sp/reflog:
Remove unnecessary local in get_ref_sha1.
-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, |