summaryrefslogtreecommitdiff
path: root/builtin/pack-refs.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsayjones.plus.com>2017-04-30 17:29:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-01 02:03:46 (GMT)
commit7f1b225153c9e75b805a262feb6796e3bf23dc3d (patch)
tree66484aae31863d10d362c69b5fc88c94b437f4fd /builtin/pack-refs.c
parentcf9e55f49438d07dd554c5ade92f1c266363af36 (diff)
downloadgit-7f1b225153c9e75b805a262feb6796e3bf23dc3d.zip
git-7f1b225153c9e75b805a262feb6796e3bf23dc3d.tar.gz
git-7f1b225153c9e75b805a262feb6796e3bf23dc3d.tar.bz2
t7400: add !CYGWIN prerequisite to 'add with \\ in path'
Commit cf9e55f494 ("submodule: prevent backslash expantion in submodule names", 07-04-2017) added a test which creates a git repository with some backslash characters in the name. On windows, where the backslash character is a directory separator, it is not possible to create a repository with the name 'sub\with\backslash'. (The NTFS filesystem would probably allow it, but the win32 api does not). The MinGW and Git for Windows versions of git actually create a repository called 'backslash' in the sub-directory 'sub/with'. On cygwin, however, due to the slightly schizophrenic treatment of the backslash character by cygwin-git, this test fails at the 'git init' stage. The git-init command does not recognise the directory separators in the input path (eg. is_dir_sep('\\') is false), so it does not attempt to create the leading directories 'sub/with'. (The call to mkdir('sub\\with\\backslash') actually does recognise the directory separators, but fails because the 'sub/with' directory doesn't exist). In order to suppress the test failure (for now), add the !CYGWIN test prerequisite. Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/pack-refs.c')
0 files changed, 0 insertions, 0 deletions