summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 53cce84)
raw | patch | inline | side by side (parent: 53cce84)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 21 Sep 2006 04:10:17 +0000 (21:10 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 21 Sep 2006 04:10:17 +0000 (21:10 -0700) |
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>
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>
builtin-symbolic-ref.c | patch | blob | history |
diff --git a/builtin-symbolic-ref.c b/builtin-symbolic-ref.c
index 6f18db870a2e4ea020034533243617ceb6275afa..13163baa88e87db469ba111b748696c24b5ffd0d 100644 (file)
--- a/builtin-symbolic-ref.c
+++ b/builtin-symbolic-ref.c
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);