projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fmt-patch: Support --attach
[git.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index
6c91ae6
..
0f3491f
100644
(file)
--- 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)
{
int get_ref_sha1(const char *ref, unsigned char *sha1)
{
- const char *filename;
-
if (check_ref_format(ref))
return -1;
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,
}
static int lock_ref_file(const char *filename, const char *lock_filename,