Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Pretty-print tagger dates.
[gitweb.git]
/
git-clone.sh
diff --git
a/git-clone.sh
b/git-clone.sh
index 54c9e4ea4c5e486bf7dd4e2b19502d2400c4eb32..89c15d7a65bc7538ef2bfbc4a68a590d4add9cf8 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" ;;