Android: Support ssh connection caching.

This commit is contained in:
Joey Hess 2013-02-19 14:56:24 -04:00
parent 4f41bd6ba6
commit 0f4cc559a7
6 changed files with 54 additions and 32 deletions

View file

@ -21,7 +21,7 @@ if [ ! -e "$base/bin/git" ]; then
fi
# Install busybox links.
if [ ! -e "$base/bin/sh" ]; then
if [ ! -e "$base/bin/sha256sum" ]; then
echo "(First run detected ... setting up busybox ...)"
"$base/bin/busybox" --install "$base/bin"
fi
@ -53,6 +53,11 @@ export GIT_TEMPLATE_DIR
GIT_ANNEX_STANDLONE_ENV="PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR"
export GIT_ANNEX_STANDLONE_ENV
# This is a temporary directory on a non-crippled filesystem.
GIT_ANNEX_TMP_DIR=$base/tmp
export GIT_ANNEX_TMP_DIR
mkdir -p "$GIT_ANNEX_TMP_DIR"
if [ "$1" ]; then
cmd="$1"
shift 1