summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-21 04:10:17 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-21 04:10:17 (GMT)
commitcc4c4f0ce25cc3803197bc19c275fd6f59a2a511 (patch)
tree1d2661dba1c8136e38e05745d43fe103f9b03df4
parent53cce84c05d3cba237ab45540b1e882be9c97215 (diff)
downloadgit-cc4c4f0ce25cc3803197bc19c275fd6f59a2a511.zip
git-cc4c4f0ce25cc3803197bc19c275fd6f59a2a511.tar.gz
git-cc4c4f0ce25cc3803197bc19c275fd6f59a2a511.tar.bz2
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 6f18db8..13163ba 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);