Skip to content

Commit bf5ab8d

Browse files
dschovdye
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 45e64d2 commit bf5ab8d

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

4646
strbuf_trim_trailing_dir_sep(&path);
47+
#ifdef GIT_WINDOWS_NATIVE
48+
convert_slashes(path.buf);
49+
#endif
4750

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

0 commit comments

Comments
 (0)