Skip to content

Commit

Permalink
scalar (Windows): use forward slashes as directory separators
Browse files Browse the repository at this point in the history
Git traditionally uses those, not backslashes, ever.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Jul 17, 2024
1 parent 0fc8d9a commit 8474a8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scalar.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ static void setup_enlistment_directory(int argc, const char **argv,
die(_("need a working directory"));

strbuf_trim_trailing_dir_sep(&path);
#ifdef GIT_WINDOWS_NATIVE
convert_slashes(path.buf);
#endif

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

0 comments on commit 8474a8c

Please sign in to comment.