diff --git a/libexec/portzap/git-changed-files b/libexec/portzap/git-changed-files index 7bce36e..7cacdce 100644 --- a/libexec/portzap/git-changed-files +++ b/libexec/portzap/git-changed-files @@ -4,7 +4,7 @@ set -e ## # variables localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)} -git="${localbase}"/bin/git +git=$(which git) mode=u=rwX,g=rX,o= gitdir=$1 commit=$2 diff --git a/libexec/portzap/git-removed-files b/libexec/portzap/git-removed-files index b8e88eb..ae7a346 100644 --- a/libexec/portzap/git-removed-files +++ b/libexec/portzap/git-removed-files @@ -4,7 +4,7 @@ set -e ## # variables localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)} -git="${localbase}"/bin/git +git=$(which git) mode=u=rwX,g=rX,o= gitdir=$1 commit=$2 diff --git a/libexec/portzap/git-rev b/libexec/portzap/git-rev index 08dabb3..77e30ef 100644 --- a/libexec/portzap/git-rev +++ b/libexec/portzap/git-rev @@ -4,7 +4,7 @@ set -e ## # variables localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)} -git="${localbase}"/bin/git +git=$(which git) mode=u=rwX,g=rX,o= gitdir=$1 diff --git a/libexec/portzap/portzap-checkout b/libexec/portzap/portzap-checkout index ee0f234..a5cb533 100644 --- a/libexec/portzap/portzap-checkout +++ b/libexec/portzap/portzap-checkout @@ -5,7 +5,7 @@ set -e # variables localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)} libexec="${localbase}"/libexec/portzap -git="${localbase}"/bin/git +git=$(which git) mode="u=rwX,g=rX,o=" gitdir="$1" branch="$2" diff --git a/libexec/portzap/portzap-clone b/libexec/portzap/portzap-clone index 27f6d30..c37c942 100755 --- a/libexec/portzap/portzap-clone +++ b/libexec/portzap/portzap-clone @@ -5,11 +5,11 @@ set -e # variables localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)} libexec="${localbase}"/libexec/portzap -git="${localbase}"/bin/git +git=$(which git) +mode=u=rwX,g=rX,o= giturl=$1 gitdir=$2 branch=$3 -mode=u=rwX,g=rX,o= ## # functions diff --git a/libexec/portzap/portzap-pull b/libexec/portzap/portzap-pull index 63346a4..1fef7cd 100755 --- a/libexec/portzap/portzap-pull +++ b/libexec/portzap/portzap-pull @@ -5,7 +5,7 @@ set -e # variables localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../..)} libexec="${localbase}"/libexec/portzap -git="${localbase}"/bin/git +git=$(which git) mode="u=rwX,g=rX,o=" gitdir=$1