summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fileops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c
index d85ff7c72..cd0c055ae 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -469,7 +469,7 @@ int git_futils_find_global_file(git_buf *path, const char *filename)
}
}
- if (win32_expand_path(&root, L"%USERPROFILE%\\") < 0 ||
+ if (win32_expand_path(&root, L"%HOMEDRIVE%\\%HOMEPATH%\\") < 0 ||
root.path[0] == L'%') /* i.e. no expansion happened */
{
giterr_set(GITERR_OS, "Cannot locate the user's profile directory");