git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] fix generation of "humanish" part of source repo

From
Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de>
Date
Jan 20, 2006, 16:16 UTC
Message-ID
<20060120161619.GA13469@informatik.uni-freiburg.de>
In-Reply-To
<20060120064739.GA2306@informatik.uni-freiburg.de>
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);}
Previous: Uwe Zeisberger
Message 2 of 2 in “fix generation of "humanish" part of source repo”
  1. fix generation of "humanish" part of source repoUwe Zeisberger, Jan 20, 2006
  2. Uwe ZeisbergerJan 20, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.