{"thread":{"id":"3106","subject":"[PATCH] fix generation of \"humanish\" part of source repo","startedAt":"2006-01-20T06:47:39Z","lastAt":"2006-01-20T16:16:19Z","messageCount":2,"participants":["Uwe Zeisberger"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"14940","messageId":"20060120064739.GA2306@informatik.uni-freiburg.de","threadId":"3106","inReplyTo":null,"subject":"[PATCH] fix generation of \"humanish\" part of source repo","fromName":"Uwe Zeisberger","fromEmail":"zeisberg@informatik.uni-freiburg.de","sentAt":"2006-01-20T06:47:39Z","receivedAt":"2006-01-20T06:47:39Z","isPatch":true,"sender":{"key":"u.kleine-koenig@pengutronix.de","avatar":"https://gravatar.com/avatar/354b5e3ceb2806a2f1e1e382ac29ddbdad18288654da62b61eb13583a857eee7?d=mp&s=160"},"body":"If repo has the form <host>:<path> and <path> doesn't contain a slash, the\ncloned repository is named \"<host>:<path>\", instead of \"<path>\" only.\n\nSigned-off-by: Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de>\n\n---\n\n git-clone.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\n3aa74cf5b61fdd2f75ebda942e839a3ecc1e1f9c\ndiff --git a/git-clone.sh b/git-clone.sh\nindex f99e0ad..0504ba4 100755\n--- a/git-clone.sh\n+++ b/git-clone.sh\n@@ -97,7 +97,7 @@ fi\n \n dir=\"$2\"\n # Try using \"humanish\" part of source repo if user didn't specify one\n-[ -z \"$dir\" ] && dir=$(echo \"$repo\" | sed -e 's|/$||' -e 's|:*/*\\.git$||' -e 's|.*/||g')\n+[ -z \"$dir\" ] && dir=$(echo \"$repo\" | sed -e 's|/$||' -e 's|:*/*\\.git$||' -e 's|.*[/:]||g')\n [ -e \"$dir\" ] && $(echo \"$dir already exists.\"; usage)\n mkdir -p \"$dir\" &&\n D=$(\n-- \n1.0.8\n\nBest regards\nUwe\n\n-- \nUwe Zeisberger\n\nhttp://www.google.com/search?q=Planck%27s+constant%3D\n"},{"id":"14954","messageId":"20060120161619.GA13469@informatik.uni-freiburg.de","threadId":"3106","inReplyTo":"20060120064739.GA2306@informatik.uni-freiburg.de","subject":"Re: [PATCH] fix generation of \"humanish\" part of source repo","fromName":"Uwe Zeisberger","fromEmail":"zeisberg@informatik.uni-freiburg.de","sentAt":"2006-01-20T16:16:19Z","receivedAt":"2006-01-20T16:16:19Z","isPatch":true,"sender":{"key":"u.kleine-koenig@pengutronix.de","avatar":"https://gravatar.com/avatar/354b5e3ceb2806a2f1e1e382ac29ddbdad18288654da62b61eb13583a857eee7?d=mp&s=160"},"body":"Hello,\n\nI resent this patch against (a more) current HEAD:\n\nIf repo has the form <host>:<path> and <path> doesn't contain a slash, the\ncloned repository is named \"<host>:<path>\", instead of \"<path>\" only.\n\nSigned-off-by: Uwe Zeisberger <zeisberg@cepheus.pub>\n\n---\n\n git-clone.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\n300d15b114323292c25259ce68b25cf1fb5769e2\ndiff --git a/git-clone.sh b/git-clone.sh\nindex 168eb96..ded4085 100755\n--- a/git-clone.sh\n+++ b/git-clone.sh\n@@ -99,7 +99,7 @@ fi\n \n dir=\"$2\"\n # Try using \"humanish\" part of source repo if user didn't specify one\n-[ -z \"$dir\" ] && dir=$(echo \"$repo\" | sed -e 's|/$||' -e 's|:*/*\\.git$||' -e 's|.*/||g')\n+[ -z \"$dir\" ] && dir=$(echo \"$repo\" | sed -e 's|/$||' -e 's|:*/*\\.git$||' -e 's|.*[/:]||g')\n [ -e \"$dir\" ] && echo \"$dir already exists.\" && usage\n mkdir -p \"$dir\" &&\n D=$(cd \"$dir\" && pwd) &&\n-- \n1.0.8\n\nBest regards\nUwe\n\n-- \nUwe Zeisberger\n\nmain(){char*a=\"main(){char*a=%c%s%c;printf(a,34,a,34%c\";printf(a,34,a,34\n,10);a=\",10);a=%c%s%c;printf(a,34,a,34,10);}%c\";printf(a,34,a,34,10);}\n"}]}