Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
repack: prune loose objects when -d is given
[gitweb.git]
/
git-clone.sh
diff --git
a/git-clone.sh
b/git-clone.sh
index a0590884b0bf6cbf284172cda1a92965170ad27b..4ed861d576bfaefa768f811a59d2ec53d233b5df 100755
(executable)
--- a/
git-clone.sh
+++ b/
git-clone.sh
@@
-118,7
+118,7
@@
dir="$2"
[ -e "$dir" ] && echo "$dir already exists." && usage
mkdir -p "$dir" &&
D=$(cd "$dir" && pwd) &&
-trap 'err=$?;
rm -r $D
; exit $err' exit
+trap 'err=$?;
cd ..; rm -r "$D"
; exit $err' exit
case "$bare" in
yes) GIT_DIR="$D" ;;
*) GIT_DIR="$D/.git" ;;