Skip to content

Commit

Permalink
Merge early part of 'sp/reflog' branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Junio C Hamano committed May 19, 2006
2 parents ff62b7f + 70e1a88 commit 8090c08
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions refs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8090c08

Please sign in to comment.