projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix generation of "humanish" part of source repo
[git.git]
/
git-clone.sh
diff --git
a/git-clone.sh
b/git-clone.sh
index
168eb96
..
ded4085
100755
(executable)
--- a/
git-clone.sh
+++ b/
git-clone.sh
@@
-99,7
+99,7
@@
fi
dir="$2"
# Try using "humanish" part of source repo if user didn't specify one
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=$(cd "$dir" && pwd) &&
[ -e "$dir" ] && echo "$dir already exists." && usage
mkdir -p "$dir" &&
D=$(cd "$dir" && pwd) &&