summaryrefslogtreecommitdiff
path: root/builtin-checkout.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-05-02 14:05:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-05-04 01:47:18 (GMT)
commit278863180a280304d6b7f4ad6f11c1a810463507 (patch)
treed8e07edbd678c33a573259c7cd8443a91feb4df0 /builtin-checkout.c
parent2d8bed969d5126053abe14ca331d14f287d462f5 (diff)
downloadgit-278863180a280304d6b7f4ad6f11c1a810463507.zip
git-278863180a280304d6b7f4ad6f11c1a810463507.tar.gz
git-278863180a280304d6b7f4ad6f11c1a810463507.tar.bz2
checkout: don't rfc2047-encode oneline on detached HEAD
When calling pretty_print_commit, there is an implicit assumption that passing in a non-NULL "subject" variable for oneline or email formats means that the output is part of a subject and therefore "subject" to rfc2047 encoding. This is not the desired effect when reporting the movement of detached HEAD. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-checkout.c')
-rw-r--r--builtin-checkout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-checkout.c b/builtin-checkout.c
index 7deb504..cf9875c 100644
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
@@ -142,7 +142,7 @@ static void describe_detached_head(char *msg, struct commit *commit)
struct strbuf sb;
strbuf_init(&sb, 0);
parse_commit(commit);
- pretty_print_commit(CMIT_FMT_ONELINE, commit, &sb, 0, "", "", 0, 0);
+ pretty_print_commit(CMIT_FMT_ONELINE, commit, &sb, 0, NULL, NULL, 0, 0);
fprintf(stderr, "%s %s... %s\n", msg,
find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV), sb.buf);
strbuf_release(&sb);