Skip to content

Commit 3505038

Browse files
committed
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 eb6922b commit 3505038

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
@@ -46,6 +46,9 @@ static void setup_enlistment_directory(int argc, const char **argv,
4646
die(_("need a working directory"));
4747

4848
strbuf_trim_trailing_dir_sep(&path);
49+
#ifdef GIT_WINDOWS_NATIVE
50+
convert_slashes(path.buf);
51+
#endif
4952

5053
/* check if currently in enlistment root with src/ workdir */
5154
len = path.len;

0 commit comments

Comments
 (0)