We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 594fbb3 commit 8fd88b5Copy full SHA for 8fd88b5
path.c
@@ -11,6 +11,7 @@
11
#include "path.h"
12
#include "packfile.h"
13
#include "object-store.h"
14
+#include "exec-cmd.h"
15
16
static int get_st_mode_bits(const char *path, int *mode)
17
{
@@ -711,6 +712,10 @@ char *expand_user_path(const char *path, int real_home)
711
712
713
if (path == NULL)
714
goto return_null;
715
+#ifdef __MINGW32__
716
+ if (path[0] == '/')
717
+ return system_path(path + 1);
718
+#endif
719
if (path[0] == '~') {
720
const char *first_slash = strchrnul(path, '/');
721
const char *username = path + 1;
0 commit comments