aboutsummaryrefslogtreecommitdiff
path: root/standalone/linux
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-03-27 12:55:18 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-03-27 12:55:18 -0400
commitab47dea8053bb1087008dbeec1919a6c5f68863a (patch)
tree89eb2fdb0478047e5a42ffc0695f934b2cb83d3e /standalone/linux
parent9bfb1b905de738984d4686b43a3d094bfba12805 (diff)
Fix bug introduced in the last release that broke git-annex sync when git-annex was installed from the standalone tarball.
This was introduced by commit 849a4b1a0d71071a602f552125fd7e25689662db However, the same problem could affect other calls to programPath, specifically some on the assistant. So, I fixed it at a deeper level.
Diffstat (limited to 'standalone/linux')
-rwxr-xr-xstandalone/linux/skel/git-annex3
1 files changed, 3 insertions, 0 deletions
diff --git a/standalone/linux/skel/git-annex b/standalone/linux/skel/git-annex
index 7fc864d87..8b59be23c 100755
--- a/standalone/linux/skel/git-annex
+++ b/standalone/linux/skel/git-annex
@@ -28,4 +28,7 @@ if [ -e "$base/bin/git-annex" ]; then
export GIT_ANNEX_APP_BASE
fi
+GIT_ANNEX_PROGRAMPATH="$0"
+export GIT_ANNEX_PROGRAMPATH
+
exec "$base/runshell" git-annex "$@"