diff options
author | Junio C Hamano <junkio@cox.net> | 2006-09-20 21:10:17 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-20 21:10:17 -0700 |
commit | cc4c4f0ce25cc3803197bc19c275fd6f59a2a511 (patch) | |
tree | 1d2661dba1c8136e38e05745d43fe103f9b03df4 /builtin-symbolic-ref.c | |
parent | 53cce84c05d3cba237ab45540b1e882be9c97215 (diff) | |
download | git-cc4c4f0ce25cc3803197bc19c275fd6f59a2a511.tar.gz |
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.c | 2 |
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); |