[PATCH 0/2] Fix warnings on access of a remote with Windows paths
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- May 20, 2017, 06:28 UTC
- Message-ID
- <cover.1495261020.git.j6t@kdbg.org>
This small series fixes these warnings on Windows:
C:\Temp\gittest>git fetch C:\Temp\gittest warning: unable to access '.git/remotes/C:\Temp\gittest': Invalid argument warning: unable to access '.git/branches/C:\Temp\gittest': Invalid argument From C:\Temp\gittest * branch HEAD -> FETCH_HEAD
The fix is in the second patch; the first patch is a preparation that allows to write the fix in my preferred style.
Johannes Sixt (2): mingw.h: permit arguments with side effects for is_dir_sep Windows: do not treat a path with backslashes as a remote's nick name
compat/mingw.h | 6 +++++- remote.c | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-)
-- 2.13.0.55.g17b7d13330