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 <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Nov 20, 2023
1 parent 7e7ae70 commit fd18ac9
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 @@ -44,6 +44,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 fd18ac9

Please sign in to comment.