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.
2 parents 1a3e302 + 15431ca commit af41867Copy full SHA for af41867
environment.c
@@ -87,6 +87,7 @@ const char * const local_repo_env[LOCAL_REPO_ENV_SIZE + 1] = {
87
static void setup_git_env(void)
88
{
89
git_dir = getenv(GIT_DIR_ENVIRONMENT);
90
+ git_dir = git_dir ? xstrdup(git_dir) : NULL;
91
if (!git_dir) {
92
git_dir = read_gitfile_gently(DEFAULT_GIT_DIR_ENVIRONMENT);
93
git_dir = git_dir ? xstrdup(git_dir) : NULL;
0 commit comments