blob: 3cf281b362dfdde82b94db084e9e982ad078cc4a [file] [log] [blame]
From 9ded9f120b3961580ea7b08de54d6ee7dcd7b603 Mon Sep 17 00:00:00 2001
From: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Date: Tue, 18 Aug 2020 12:42:13 +0900
Subject: [PATCH 9/9] win32: Use "<NUL" for "git config"
Git for Windows break terminal sequence after git-config.
---
src/options.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/options.c b/src/options.c
index 2145b33..c38f8d3 100644
--- a/src/options.c
+++ b/src/options.c
@@ -698,7 +698,7 @@ void parse_options(int argc, char **argv, char **base_paths[], char **paths[]) {
char *gitconfig_res = NULL;
#ifdef _WIN32
- gitconfig_file = popen("git config -z --path --get core.excludesfile 2>NUL", "r");
+ gitconfig_file = popen("git config -z --path --get core.excludesfile 2>NUL <NUL", "r");
#else
gitconfig_file = popen("git config -z --path --get core.excludesfile 2>/dev/null", "r");
#endif
--
2.27.0