mirror of
https://github.com/git/git.git
synced 2024-11-17 22:44:49 +01:00
Merge branch 'sp/reflog' into next
* sp/reflog: Remove unnecessary local in get_ref_sha1.
This commit is contained in:
commit
78bc2e1552
1 changed files with 1 additions and 4 deletions
5
refs.c
5
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,
|
||||
|
|
Loading…
Reference in a new issue