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 aa80dfb commit 548fac5Copy full SHA for 548fac5
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
{
@@ -714,6 +715,10 @@ char *expand_user_path(const char *path, int real_home)
714
715
716
if (path == NULL)
717
goto return_null;
718
+#ifdef __MINGW32__
719
+ if (path[0] == '/')
720
+ return system_path(path + 1);
721
+#endif
722
if (path[0] == '~') {
723
const char *first_slash = strchrnul(path, '/');
724
const char *username = path + 1;
0 commit comments