aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-20 21:10:17 -0700
committerJunio C Hamano <junkio@cox.net>2006-09-20 21:10:17 -0700
commitcc4c4f0ce25cc3803197bc19c275fd6f59a2a511 (patch)
tree1d2661dba1c8136e38e05745d43fe103f9b03df4
parent53cce84c05d3cba237ab45540b1e882be9c97215 (diff)
downloadgit-cc4c4f0ce25cc3803197bc19c275fd6f59a2a511.tar.gz
git-cc4c4f0ce25cc3803197bc19c275fd6f59a2a511.tar.xz
symbolit-ref: fix resolve_ref conversion.
An earlier conversion accidentally hardcoded "HEAD" to be passed to resolve_ref(), thereby causing git-symbolic-ref command to always report where the HEAD points at, ignoring the command line parameter. Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--builtin-symbolic-ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-symbolic-ref.c b/builtin-symbolic-ref.c
index 6f18db870..13163baa8 100644
--- a/builtin-symbolic-ref.c
+++ b/builtin-symbolic-ref.c
@@ -7,7 +7,7 @@ static const char git_symbolic_ref_usage[] =
static void check_symref(const char *HEAD)
{
unsigned char sha1[20];
- const char *refs_heads_master = resolve_ref("HEAD", sha1, 0);
+ const char *refs_heads_master = resolve_ref(HEAD, sha1, 0);
if (!refs_heads_master)
die("No such ref: %s", HEAD);