From: Junio C Hamano Date: Thu, 21 Sep 2006 04:10:17 +0000 (-0700) Subject: symbolit-ref: fix resolve_ref conversion. X-Git-Tag: v1.4.4-rc1~43^2~30 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cc4c4f0ce25cc3803197bc19c275fd6f59a2a511;p=git.git 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 --- 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);