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

[RFC/PATCH v2 1/3] sh-setup: export GIT_DIR

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Apr 23, 2014, 19:42 UTC
Message-ID
<1398282160-26151-2-git-send-email-felipe.contreras@gmail.com>
In-Reply-To
<1398282160-26151-1-git-send-email-felipe.contreras@gmail.com>
It is what the clients of this library expect.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 git-sh-setup.sh | 1 +
 1 file changed, 1 insertion(+)
diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index 5f28b32..fb0362f 100644
--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
@@ -346,6 +346,7 @@ then
 		exit 1
 	}
 	: ${GIT_OBJECT_DIRECTORY="$GIT_DIR/objects"}
+	export GIT_DIR
 fi
 
 peel_committish () {
-- 
1.9.2+fc1.1.g5c924db
Previous: Felipe ContrerasNext: Jeff King
Message 2 of 12 in “New 'update-branch' hook”
  1. 0/3 New 'update-branch' hookFelipe Contreras, Apr 23, 2014
  2. 1/3 sh-setup: export GIT_DIRFelipe Contreras, Apr 23, 2014
  3. Jeff KingApr 23, 2014
  4. Junio C HamanoApr 23, 2014
  5. 2/3 run-command: make sure hooks have always GIT_DIRFelipe Contreras, Apr 23, 2014
  6. Junio C HamanoApr 23, 2014
  7. Felipe ContrerasApr 23, 2014
  8. 3/3 Add 'update-branch' hookFelipe Contreras, Apr 23, 2014
  9. Junio C HamanoApr 23, 2014
  10. Felipe ContrerasApr 23, 2014
  11. Junio C HamanoApr 23, 2014
  12. Felipe ContrerasApr 23, 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.