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 450ee53ab6

However, the same problem could affect other calls to programPath,
specifically some on the assistant. So, I fixed it at a deeper level.
This commit is contained in:
Joey Hess 2015-03-27 12:55:18 -04:00
parent 00a6f5500f
commit 5be536e523
5 changed files with 23 additions and 52 deletions

View file

@ -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 "$@"