aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@localhost>2013-02-22 10:51:03 -0900
committerroot <root@localhost>2013-02-22 10:51:03 -0900
commit188b25df8876b1e04e1cb6aac60b7eb0e2b0fd22 (patch)
treed188bc3f91451f5ff90f576c85588dc247b5e2fd
parentc0273f5ac8797e2a543e3b6627c0082c91967f29 (diff)
downloadgit-remote-gcrypt-188b25df8876b1e04e1cb6aac60b7eb0e2b0fd22.zip
git-remote-gcrypt-188b25df8876b1e04e1cb6aac60b7eb0e2b0fd22.tar.gz
git-remote-gcrypt-188b25df8876b1e04e1cb6aac60b7eb0e2b0fd22.tar.bz2
Use pathname expansion only where needed
-rwxr-xr-xgit-remote-gcrypt6
1 files changed, 4 insertions, 2 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index b7fc44b..f4b7ad8 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -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
}