summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6cdfd17)
raw | patch | inline | side by side (parent: 6cdfd17)
author | Shawn Pearce <spearce@spearce.org> | |
Wed, 17 May 2006 09:54:46 +0000 (05:54 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 18 May 2006 00:33:52 +0000 (17:33 -0700) |
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c | patch | blob | history |
index 6c91ae6468f859897a358ebd97f4143e44cda874..0f3491f871bd692151b42307b833e633b041e948 100644 (file)
--- a/refs.c
+++ b/refs.c
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,