From: Uwe Zeisberger Date: Fri, 20 Jan 2006 06:47:39 GMT Subject: [PATCH] fix generation of "humanish" part of source repo Message-ID: <20060120064739.GA2306@informatik.uni-freiburg.de> If repo has the form : and doesn't contain a slash, the cloned repository is named ":", instead of "" only. Signed-off-by: Uwe Zeisberger --- git-clone.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 3aa74cf5b61fdd2f75ebda942e839a3ecc1e1f9c diff --git a/git-clone.sh b/git-clone.sh index f99e0ad..0504ba4 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -97,7 +97,7 @@ fi dir="$2" # Try using "humanish" part of source repo if user didn't specify one -[ -z "$dir" ] && dir=$(echo "$repo" | sed -e 's|/$||' -e 's|:*/*\.git$||' -e 's|.*/||g') +[ -z "$dir" ] && dir=$(echo "$repo" | sed -e 's|/$||' -e 's|:*/*\.git$||' -e 's|.*[/:]||g') [ -e "$dir" ] && $(echo "$dir already exists."; usage) mkdir -p "$dir" && D=$( -- 1.0.8 Best regards Uwe -- Uwe Zeisberger http://www.google.com/search?q=Planck%27s+constant%3D