git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v3 3/3] Add GIT_COMMON_DIR to local_repo_env

From
Max Kirillov <max@max630.net>
Date
Dec 9, 2014, 04:44 UTC
Message-ID
<1418100283-8995-4-git-send-email-max@max630.net>
In-Reply-To
<1418100283-8995-1-git-send-email-max@max630.net>

This is obviously right thing to do, because submodule repository does not use common directory of super repository.

Suggested-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Max Kirillov <max@max630.net>
---
 environment.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/environment.c b/environment.c
index 8351007..85ce3c4 100644
--- a/environment.c
+++ b/environment.c
@@ -94,6 +94,7 @@ const char * const local_repo_env[] = {
 	CONFIG_DATA_ENVIRONMENT,
 	DB_ENVIRONMENT,
 	GIT_DIR_ENVIRONMENT,
+	GIT_COMMON_DIR_ENVIRONMENT,
 	GIT_WORK_TREE_ENVIRONMENT,
 	GIT_IMPLICIT_WORK_TREE_ENVIRONMENT,
 	GRAFT_ENVIRONMENT,
-- 
2.2.0.50.gb2b6831
Previous: Max KirillovNext: Max Kirillov
Message 4 of 5 in “Multiple worktrees vs. submodules fixes”
  1. 0/3 Multiple worktrees vs. submodules fixesMax Kirillov, Dec 9, 2014
  2. 1/3 submodule refactor: use git_path_submodule() in add_submodule_odb()Max Kirillov, Dec 9, 2014
  3. 2/3 path: implement common_dir handling in git_path_submodule()Max Kirillov, Dec 9, 2014
  4. 3/3 Add GIT_COMMON_DIR to local_repo_envMax Kirillov, Dec 9, 2014
  5. Max KirillovDec 9, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.