summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-11-23 19:23:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-11-23 19:23:17 (GMT)
commitbd53f38d52b87340ad791290d700c5c7e8587f23 (patch)
treeecff6137224ddcd8d0e20a9a7c68fec94f056841 /builtin
parent48e9ad5ef3afd39168e2fb72d0ce7ac5f7124d31 (diff)
parent882cd23777f8984e433e0c0addae5e9d70de75e8 (diff)
downloadgit-bd53f38d52b87340ad791290d700c5c7e8587f23.zip
git-bd53f38d52b87340ad791290d700c5c7e8587f23.tar.gz
git-bd53f38d52b87340ad791290d700c5c7e8587f23.tar.bz2
Merge branch 'js/rebase-i-commentchar-fix'
"git rebase -i" did not work well with core.commentchar configuration variable for two reasons, both of which have been fixed. * js/rebase-i-commentchar-fix: rebase -i: handle core.commentChar=auto stripspace: respect repository config rebase -i: highlight problems with core.commentchar
Diffstat (limited to 'builtin')
-rw-r--r--builtin/stripspace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/stripspace.c b/builtin/stripspace.c
index 15e716e..1e62a00 100644
--- a/builtin/stripspace.c
+++ b/builtin/stripspace.c
@@ -44,8 +44,10 @@ int cmd_stripspace(int argc, const char **argv, const char *prefix)
if (argc)
usage_with_options(stripspace_usage, options);
- if (mode == STRIP_COMMENTS || mode == COMMENT_LINES)
+ if (mode == STRIP_COMMENTS || mode == COMMENT_LINES) {
+ setup_git_directory_gently(NULL);
git_config(git_default_config, NULL);
+ }
if (strbuf_read(&buf, 0, 1024) < 0)
die_errno("could not read the input");