user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 2/3] wwwtext: don't blindly quote "git clone" destination
  2020-09-09 21:23  5% [PATCH 0/3] wwwtext: minor config example tweaks Eric Wong
@ 2020-09-09 21:23  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-09-09 21:23 UTC (permalink / raw)
  To: meta

Save screen space and light up fewer pixels to reduce visual noise.
---
 lib/PublicInbox/WwwText.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm
index 14470b45..99aec370 100644
--- a/lib/PublicInbox/WwwText.pm
+++ b/lib/PublicInbox/WwwText.pm
@@ -198,11 +198,11 @@ EOF
 			if ($urls && scalar(@$urls)) {
 				$$txt .= "\t; ";
 				$$txt .= join(" ||\n\t;\t", map {;
-					my $cpath = $path;
+					my $dst = $path;
 					if ($path !~ m![a-z0-9_/\.\-]!i) {
-						$cpath = dq_escape($cpath);
+						$dst = '"'.dq_escape($dst).'"';
 					}
-					qq(git clone $_ "$cpath");
+					qq(git clone $_ $dst);
 				} @$urls);
 				$$txt .= "\n";
 			}

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/3] wwwtext: minor config example tweaks
@ 2020-09-09 21:23  5% Eric Wong
  2020-09-09 21:23  7% ` [PATCH 2/3] wwwtext: don't blindly quote "git clone" destination Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2020-09-09 21:23 UTC (permalink / raw)
  To: meta

Just a couple of things which hopefully makes things easier
for newbies...

Eric Wong (3):
  wwwtext: describe the use of `coderepo' entries
  wwwtext: don't blindly quote "git clone" destination
  wwwtext: config comment improvements

 lib/PublicInbox/WwwText.pm | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)


^ permalink raw reply	[relevance 5%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-09-09 21:23  5% [PATCH 0/3] wwwtext: minor config example tweaks Eric Wong
2020-09-09 21:23  7% ` [PATCH 2/3] wwwtext: don't blindly quote "git clone" destination Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).