X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/70661cb79d4cbd4bc6c9c21605822f2b75785c2c..00be16b0cde8e6c6cf23f0c3e530f85a4d4fbd90:/contrib/stg-gitk?ds=sidebyside diff --git a/contrib/stg-gitk b/contrib/stg-gitk index cb264e5..e3ddfb1 100755 --- a/contrib/stg-gitk +++ b/contrib/stg-gitk @@ -40,7 +40,7 @@ if [ $allbranches = 1 ] && [ "$branches" != "" ]; then usage fi -GIT_DIR=$(git-rev-parse --git-dir) +GIT_DIR=$(git rev-parse --git-dir) GIT_DIR_SPKIPLEN=$(printf "$GIT_DIR/X" | wc -c) refdirs='' @@ -64,9 +64,9 @@ else elif [ -e "$GIT_DIR/refs/heads/$b" ]; then # other GIT branch refdirs="$refdirs $GIT_DIR/refs/heads/$b" - elif [ $(git-for-each-ref "refs/$b" | wc -l) != 0 ]; then + elif [ $(git for-each-ref "refs/$b" | wc -l) != 0 ]; then # other ref - refdirs="$refdirs $(git-for-each-ref --format="$GIT_DIR/%(refname)" "refs/$b")" + refdirs="$refdirs $(git for-each-ref --format="$GIT_DIR/%(refname)" "refs/$b")" else echo >&2 "ERROR: no such ref '$b'" usage