Minor cleanup (make sure used variables are clear at start)
This commit is contained in:
parent
6c203aaa77
commit
dc2d0b34b1
1 changed files with 6 additions and 3 deletions
|
@ -10,8 +10,8 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
Did_find_repo= # yes for connected, no for no repo
|
Did_find_repo= # yes for connected, no for no repo
|
||||||
Localdir="${GIT_DIR:-.git}/remote-gcrypt"
|
Localdir="${GIT_DIR:=.git}/remote-gcrypt"
|
||||||
export GITCEPTION="$GITCEPTION+" # Reuse $Gref except when stacked
|
export GITCEPTION="${GITCEPTION:-}+" # Reuse $Gref except when stacked
|
||||||
Gref="refs/gcrypt/gitception$GITCEPTION"
|
Gref="refs/gcrypt/gitception$GITCEPTION"
|
||||||
Gref_rbranch="refs/heads/master"
|
Gref_rbranch="refs/heads/master"
|
||||||
Repoid=
|
Repoid=
|
||||||
|
@ -19,6 +19,9 @@ Hashpfx=":SHA224:"
|
||||||
UrlTag="G."
|
UrlTag="G."
|
||||||
Packpfx="pack $Hashpfx"
|
Packpfx="pack $Hashpfx"
|
||||||
Packkey_bytes=33
|
Packkey_bytes=33
|
||||||
|
|
||||||
|
Branchlist=
|
||||||
|
Packlist=
|
||||||
Extension_list=
|
Extension_list=
|
||||||
|
|
||||||
# compat/utility functions
|
# compat/utility functions
|
||||||
|
@ -518,7 +521,7 @@ EOF
|
||||||
NAME=$1
|
NAME=$1
|
||||||
URL=$2
|
URL=$2
|
||||||
( isurl ssh "$URL" || isurl sftp "$URL" ||
|
( 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://"
|
echo_die "Supported URLs: gitception://<giturl>, Absolute path, sftp://, ssh://"
|
||||||
|
|
||||||
mkdir -p "$Localdir"
|
mkdir -p "$Localdir"
|
||||||
|
|
Loading…
Reference in a new issue