diff options
author | root <root@localhost> | 2013-02-14 00:00:00 +0000 |
---|---|---|
committer | root <root@localhost> | 2013-02-14 00:00:00 +0000 |
commit | dc2d0b34b15ab1a37fbc29d22d5b8872aff5f722 (patch) | |
tree | a373619514c94712dac2cca9d8dad58a8f21b166 /git-remote-gcrypt | |
parent | 6c203aaa77a3d33715ae9b1d54253f6c2527c293 (diff) | |
download | git-remote-gcrypt-dc2d0b34b15ab1a37fbc29d22d5b8872aff5f722.tar.gz |
Minor cleanup (make sure used variables are clear at start)
Diffstat (limited to 'git-remote-gcrypt')
-rwxr-xr-x | git-remote-gcrypt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt index cee730d..6c380da 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -10,8 +10,8 @@ set -e Did_find_repo= # yes for connected, no for no repo -Localdir="${GIT_DIR:-.git}/remote-gcrypt" -export GITCEPTION="$GITCEPTION+" # Reuse $Gref except when stacked +Localdir="${GIT_DIR:=.git}/remote-gcrypt" +export GITCEPTION="${GITCEPTION:-}+" # Reuse $Gref except when stacked Gref="refs/gcrypt/gitception$GITCEPTION" Gref_rbranch="refs/heads/master" Repoid= @@ -19,6 +19,9 @@ Hashpfx=":SHA224:" UrlTag="G." Packpfx="pack $Hashpfx" Packkey_bytes=33 + +Branchlist= +Packlist= Extension_list= # compat/utility functions @@ -518,7 +521,7 @@ EOF NAME=$1 URL=$2 ( isurl ssh "$URL" || isurl sftp "$URL" || - isurl gitception "$URL" || isnull ${URL##/*} ) || + isurl gitception "$URL" || isnull "${URL##/*}" ) || echo_die "Supported URLs: gitception://<giturl>, Absolute path, sftp://, ssh://" mkdir -p "$Localdir" |