mirror of
https://github.com/git/git.git
synced 2026-03-31 20:10:10 +02:00
Add a Windows-specific fallback to getenv("HOME");
This fixes msysGit issue 482 properly. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -507,4 +507,8 @@ int remove_or_warn(unsigned int mode, const char *path);
|
||||
#define mark_as_git_dir(x) /* noop */
|
||||
#endif
|
||||
|
||||
#ifndef get_home_directory
|
||||
#define get_home_directory() getenv("HOME")
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user