Skip to content

Commit 8b5b0e8

Browse files
committed
Merge branch 'sb/submodule-cleanup-export-git-dir-env'
Code cleanup. * sb/submodule-cleanup-export-git-dir-env: submodule.c: use GIT_DIR_ENVIRONMENT consistently
2 parents b85f79c + c5f3cba commit 8b5b0e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

submodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,8 @@ void prepare_submodule_repo_env(struct argv_array *out)
13791379
if (strcmp(*var, CONFIG_DATA_ENVIRONMENT))
13801380
argv_array_push(out, *var);
13811381
}
1382-
argv_array_push(out, "GIT_DIR=.git");
1382+
argv_array_pushf(out, "%s=%s", GIT_DIR_ENVIRONMENT,
1383+
DEFAULT_GIT_DIR_ENVIRONMENT);
13831384
}
13841385

13851386
/*

0 commit comments

Comments
 (0)