Use pathname expansion only where needed
This commit is contained in:
parent
c0273f5ac8
commit
188b25df88
1 changed files with 4 additions and 2 deletions
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -u
|
set -u
|
||||||
|
set -f
|
||||||
|
|
||||||
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
|
||||||
|
@ -611,8 +612,8 @@ EOF
|
||||||
|
|
||||||
xecho "$r_del_list" | get_pack_files "$Localdir/pack/"
|
xecho "$r_del_list" | get_pack_files "$Localdir/pack/"
|
||||||
|
|
||||||
git verify-pack -v "$Localdir"/pack/*.idx | grep -E '^[0-9a-f]{40}' |
|
(set +f; git verify-pack -v "$Localdir"/pack/*.idx) |
|
||||||
cut -f 1 -d ' ' >> "$1"
|
grep -E '^[0-9a-f]{40}' | cut -f 1 -d ' ' >> "$1"
|
||||||
|
|
||||||
Packlist=$r_keep_packlist
|
Packlist=$r_keep_packlist
|
||||||
setvar "$2" "$r_del_list"
|
setvar "$2" "$r_del_list"
|
||||||
|
@ -781,6 +782,7 @@ EOF
|
||||||
|
|
||||||
cleanup_atexit()
|
cleanup_atexit()
|
||||||
{
|
{
|
||||||
|
set +f
|
||||||
rm -f "$Localdir"/tmp_*".$$" >&2
|
rm -f "$Localdir"/tmp_*".$$" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue