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 e930792 commit 2e80f5dCopy full SHA for 2e80f5d
path.c
@@ -12,6 +12,7 @@
12
#include "packfile.h"
13
#include "object-store.h"
14
#include "lockfile.h"
15
+#include "exec-cmd.h"
16
17
static int get_st_mode_bits(const char *path, int *mode)
18
{
@@ -732,6 +733,10 @@ char *expand_user_path(const char *path, int real_home)
732
733
734
if (path == NULL)
735
goto return_null;
736
+#ifdef __MINGW32__
737
+ if (path[0] == '/')
738
+ return system_path(path + 1);
739
+#endif
740
if (path[0] == '~') {
741
const char *first_slash = strchrnul(path, '/');
742
const char *username = path + 1;
0 commit comments