Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-21 08:10:17 +0400
committerJunio C Hamano <junkio@cox.net>2006-09-21 08:10:17 +0400
commitcc4c4f0ce25cc3803197bc19c275fd6f59a2a511 (patch)
tree1d2661dba1c8136e38e05745d43fe103f9b03df4 /builtin-symbolic-ref.c
parent53cce84c05d3cba237ab45540b1e882be9c97215 (diff)
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>
Diffstat (limited to 'builtin-symbolic-ref.c')
-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 6f18db870a..13163baa88 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);