summaryrefslogtreecommitdiff
path: root/standalone/osx/git-annex.app/Contents/MacOS/runshell
diff options
context:
space:
mode:
Diffstat (limited to 'standalone/osx/git-annex.app/Contents/MacOS/runshell')
-rwxr-xr-xstandalone/osx/git-annex.app/Contents/MacOS/runshell9
1 files changed, 7 insertions, 2 deletions
diff --git a/standalone/osx/git-annex.app/Contents/MacOS/runshell b/standalone/osx/git-annex.app/Contents/MacOS/runshell
index 40c1be615..211f174fc 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
@@ -60,5 +65,5 @@ if [ "$1" ]; then
shift 1
exec "$cmd" "$@"
else
- sh
+ $SHELL
fi