Skip to content

Commit 2308984

Browse files
dschoderrickstolee
authored andcommitted
scalar (Windows): use forward slashes as directory separators
Git traditionally uses those, not backslashes, ever. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 862e225 commit 2308984

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scalar.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ static void setup_enlistment_directory(int argc, const char **argv,
5555
die(_("need a working directory"));
5656

5757
strbuf_trim_trailing_dir_sep(&path);
58+
#ifdef GIT_WINDOWS_NATIVE
59+
convert_slashes(path.buf);
60+
#endif
5861
do {
5962
const size_t len = path.len;
6063

0 commit comments

Comments
 (0)