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

[PATCH 2/3] taskd/clone: quote shell metacharacters where appropriate

From
Kirill Smelkov <kirr@mns.spb.ru>
Date
Mar 22, 2010, 11:08 UTC
Message-ID
<31fb9f4ece8be1e91aca8f05e78a8e3df986741d.1269255835.git.kirr@mns.spb.ru>
In-Reply-To
<20100222085029.GA28744@landau.phys.spbu.ru>
At present this involves svn mirror setup -- refspec mappings contain
shell wildcards. Quote them just in case.
---
 taskd/clone.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/taskd/clone.sh b/taskd/clone.sh
index 0f5d6fa..cfcb3b1 100755
--- a/taskd/clone.sh
+++ b/taskd/clone.sh
@@ -27,9 +27,9 @@ case "$url" in
 		GIT_DIR=. git svn fetch
 		# Neat Trick suggested by Miklos Vajna
 		GIT_DIR=. git config remote.origin.url .
-		GIT_DIR=. git config remote.origin.fetch +refs/remotes/heads/*:refs/heads/*
-		GIT_DIR=. git config --add remote.origin.fetch +refs/remotes/trunk:refs/heads/master
-		GIT_DIR=. git config --add remote.origin.fetch +refs/remotes/tags/*:refs/tags/*
+		GIT_DIR=. git config remote.origin.fetch '+refs/remotes/heads/*:refs/heads/*'
+		GIT_DIR=. git config --add remote.origin.fetch '+refs/remotes/trunk:refs/heads/master'
+		GIT_DIR=. git config --add remote.origin.fetch '+refs/remotes/tags/*:refs/tags/*'
 		GIT_DIR=. git fetch
 		;;
 	darcs://*)
-- 
1.7.0.2.284.gafe27d
Previous: Kirill SmelkovNext: Kirill Smelkov
Message 7 of 12 in “[BUG] girocco + git-svn: trunk is not propagated to master”
  1. Kirill SmelkovFeb 19, 2010
  2. Miklos VajnaFeb 20, 2010
  3. Kirill SmelkovFeb 21, 2010
  4. Teach Girocco to mirror http:// style SVN reposKirill Smelkov, Feb 22, 2010
  5. 0/3 girocco + git-svn: trunk is not propagated to master + more... (resend)Kirill Smelkov, Mar 22, 2010
  6. 1/3 taskd/clone: Don't forget to use 'git config --add' for multivars setupKirill Smelkov, Mar 22, 2010
  7. 2/3 taskd/clone: quote shell metacharacters where appropriateKirill Smelkov, Mar 22, 2010
  8. 3/3 Teach Girocco to mirror http:// style SVN reposKirill Smelkov, Mar 22, 2010
  9. Petr BaudisMay 5, 2010
  10. Kirill SmelkovMay 6, 2010
  11. Petr BaudisMay 6, 2010
  12. Kirill SmelkovMay 6, 2010

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.