aboutsummaryrefslogtreecommitdiff
path: root/standalone/osx/git-annex.app
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-12-13 12:27:32 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-12-13 12:27:32 -0400
commit38ae733f4f525bb5cfaddc04c9b250551dca93e5 (patch)
treec27967acd0df0115edb08dfe7c0643e6178f687d /standalone/osx/git-annex.app
parent2581ac61e032eb75b9a332ffea6fff16bf1833aa (diff)
furnish git with an (empty) template directory in standalone builds
This will stop git-init complaining about missing template directory.
Diffstat (limited to 'standalone/osx/git-annex.app')
-rwxr-xr-xstandalone/osx/git-annex.app/Contents/MacOS/runshell7
1 files changed, 6 insertions, 1 deletions
diff --git a/standalone/osx/git-annex.app/Contents/MacOS/runshell b/standalone/osx/git-annex.app/Contents/MacOS/runshell
index 40c1be615..bdeee6d97 100755
--- a/standalone/osx/git-annex.app/Contents/MacOS/runshell
+++ b/standalone/osx/git-annex.app/Contents/MacOS/runshell
@@ -51,8 +51,13 @@ export ORIG_GIT_EXEC_PATH
GIT_EXEC_PATH=$base
export GIT_EXEC_PATH
+ORIG_GIT_TEMPLATE_DIR="$GIT_TEMPLATE_DIR"
+export ORIG_GIT_TEMPLATE_DIR
+GIT_TEMPLATE_DIR="$base/templates"
+export GIT_TEMPLATE_DIR
+
# Indicate which variables were exported above.
-GIT_ANNEX_STANDLONE_ENV="PATH GIT_EXEC_PATH"
+GIT_ANNEX_STANDLONE_ENV="PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR"
export GIT_ANNEX_STANDLONE_ENV
if [ "$1" ]; then