diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-01-19 00:40:44 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-01-22 11:00:07 -0800 |
commit | 0f5274033ecb0262dc77e4ed48fdb1ab07181bd8 (patch) | |
tree | fe2ca20b0088e4d6ed2c7fc86e181fd7f09bbc76 /contrib/hooks/pre-auto-gc-battery | |
parent | rename_tmp_log(): on SCLD_VANISHED, retry (diff) | |
download | tgif-0f5274033ecb0262dc77e4ed48fdb1ab07181bd8.tar.xz |
safe_create_leading_directories(): on Windows, \ can separate path components
When cloning to a directory "C:\foo\bar" from Windows' cmd.exe where
"foo" does not exist yet, Git would throw an error like
fatal: could not create work tree dir 'c:\foo\bar'.: No such file or directory
Fix this by not hard-coding a platform specific directory separator
into safe_create_leading_directories().
This patch, including its entire commit message, is derived from a
patch by Sebastian Schuberth.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/hooks/pre-auto-gc-battery')
0 files changed, 0 insertions, 0 deletions