]> Nutra Git (v1) - gamesguru/git-remote-gcrypt.git/commitdiff
Use pathname expansion only where needed
authorroot <root@localhost>
Fri, 22 Feb 2013 19:51:03 +0000 (10:51 -0900)
committerroot <root@localhost>
Fri, 22 Feb 2013 19:51:03 +0000 (10:51 -0900)
git-remote-gcrypt

index b7fc44b146390b8adce598a07d50c4d1c9f3e453..f4b7ad806acbf9c55b7dd8a44468b7930c390d6c 100755 (executable)
@@ -10,6 +10,7 @@
 
 set -e
 set -u
+set -f
 
 Localdir="${GIT_DIR:=.git}/remote-gcrypt"
 export GITCEPTION="${GITCEPTION:-}+" # Reuse $Gref except when stacked
@@ -611,8 +612,8 @@ EOF
 
        xecho "$r_del_list" | get_pack_files "$Localdir/pack/"
 
-       git verify-pack -v "$Localdir"/pack/*.idx | grep -E '^[0-9a-f]{40}' |
-               cut -f 1 -d ' ' >> "$1"
+       (set +f; git verify-pack -v "$Localdir"/pack/*.idx) |
+               grep -E '^[0-9a-f]{40}' | cut -f 1 -d ' ' >> "$1"
 
        Packlist=$r_keep_packlist
        setvar "$2" "$r_del_list"
@@ -781,6 +782,7 @@ EOF
 
 cleanup_atexit()
 {
+       set +f
        rm -f "$Localdir"/tmp_*".$$" >&2
 }