Skip to content

Commit 912f73a

Browse files
committed
fixup! mingw: handle absolute paths in expand_user_path()
This drops Git for Windows' version in preparation for merging the version that made it upstream, followed by reinstating the now-deprecated handling of a leading slash on Windows. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 81b29de commit 912f73a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

path.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "packfile.h"
1313
#include "object-store.h"
1414
#include "lockfile.h"
15-
#include "exec-cmd.h"
1615

1716
static int get_st_mode_bits(const char *path, int *mode)
1817
{
@@ -733,10 +732,6 @@ char *expand_user_path(const char *path, int real_home)
733732

734733
if (path == NULL)
735734
goto return_null;
736-
#ifdef __MINGW32__
737-
if (path[0] == '/')
738-
return system_path(path + 1);
739-
#endif
740735
if (path[0] == '~') {
741736
const char *first_slash = strchrnul(path, '/');
742737
const char *username = path + 1;

0 commit comments

Comments
 (0)