From: Junio C Hamano Date: Thu, 18 May 2006 00:34:01 +0000 (-0700) Subject: Merge branch 'sp/reflog' into next X-Git-Tag: v1.4.1-rc1~89 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/78bc2e1552ed6e2829c2ffac83a69bea6ac26ee8?hp=b312cc82b4995414ece4c52119be38040d9626d7 Merge branch 'sp/reflog' into next * sp/reflog: Remove unnecessary local in get_ref_sha1. --- diff --git a/refs.c b/refs.c index 6c91ae6468..0f3491f871 100644 --- a/refs.c +++ b/refs.c @@ -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,