* [PATCH] fix generation of "humanish" part of source repo
@ 2006-01-20 6:47 Uwe Zeisberger
2006-01-20 16:16 ` Uwe Zeisberger
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Zeisberger @ 2006-01-20 6:47 UTC (permalink / raw)
To: git
If repo has the form <host>:<path> and <path> doesn't contain a slash, the
cloned repository is named "<host>:<path>", instead of "<path>" only.
Signed-off-by: Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fix generation of "humanish" part of source repo
2006-01-20 6:47 [PATCH] fix generation of "humanish" part of source repo Uwe Zeisberger
@ 2006-01-20 16:16 ` Uwe Zeisberger
0 siblings, 0 replies; 2+ messages in thread
From: Uwe Zeisberger @ 2006-01-20 16:16 UTC (permalink / raw)
To: git
Hello,
I resent this patch against (a more) current HEAD:
If repo has the form <host>:<path> and <path> doesn't contain a slash, the
cloned repository is named "<host>:<path>", instead of "<path>" only.
Signed-off-by: Uwe Zeisberger <zeisberg@cepheus.pub>
---
git-clone.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
300d15b114323292c25259ce68b25cf1fb5769e2
diff --git a/git-clone.sh b/git-clone.sh
index 168eb96..ded4085 100755
--- 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
-[ -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) &&
--
1.0.8
Best regards
Uwe
--
Uwe Zeisberger
main(){char*a="main(){char*a=%c%s%c;printf(a,34,a,34%c";printf(a,34,a,34
,10);a=",10);a=%c%s%c;printf(a,34,a,34,10);}%c";printf(a,34,a,34,10);}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-20 16:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-20 6:47 [PATCH] fix generation of "humanish" part of source repo Uwe Zeisberger
2006-01-20 16:16 ` Uwe Zeisberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).