Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Fix multi-paragraph list items in OPTIONS section
[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" ;;