diff options
author | Shawn Pearce <spearce@spearce.org> | 2006-05-17 11:54:46 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-18 02:33:52 +0200 |
commit | 70e1a880a3dc3648fbed463044358a4a83116743 (patch) | |
tree | e33529025ba6e4baf23346af8d4603ce7f738140 | |
parent | commit: allow --pretty= args to be abbreviated (diff) | |
download | git-70e1a880a3dc3648fbed463044358a4a83116743.tar.xz git-70e1a880a3dc3648fbed463044358a4a83116743.zip |
Remove unnecessary local in get_ref_sha1.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
-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, |