git-fetch --tags: deal with tags with spaces in them.

"git-fetch --tags" can get confused with tags with spaces in their names,
it used to use shell IFS to split the list of tags and also used curl
which insists the URL to be escaped.  Fix it so it can work with Martin's
moodle repository http://locke.catalyst.net.nz/git/moodle.git/.

We still reserve characters like leading plus-sign '+' and colon
':' anywhere to represent refspec src-dst pair, and obviously we
cannot use LF (that terminates Pull: line in .git/remotes
files), but now you can have spaces with this patch.

Signed-off-by: Junio C Hamano <junkio@cox.net>
1 file changed
tree: 3457e0590f6f88f00692e1c23693bbfe061920b1
  1. arm/
  2. compat/
  3. debian/
  4. Documentation/
  5. mozilla-sha1/
  6. ppc/
  7. t/
  8. templates/
  9. .gitignore
  10. apply.c
  11. blob.c
  12. blob.h
  13. cache.h
  14. cat-file.c
  15. checkout-index.c
  16. clone-pack.c
  17. cmd-rename.sh
  18. commit-tree.c
  19. commit.c
  20. commit.h
  21. config.c
  22. connect.c
  23. convert-objects.c
  24. COPYING
  25. count-delta.c
  26. count-delta.h
  27. csum-file.c
  28. csum-file.h
  29. daemon.c
  30. date.c
  31. delta.h
  32. diff-delta.c
  33. diff-files.c
  34. diff-index.c
  35. diff-stages.c
  36. diff-tree.c
  37. diff.c
  38. diff.h
  39. diffcore-break.c
  40. diffcore-order.c
  41. diffcore-pathspec.c
  42. diffcore-pickaxe.c
  43. diffcore-rename.c
  44. diffcore.h
  45. entry.c
  46. environment.c
  47. epoch.c
  48. epoch.h
  49. fetch-pack.c
  50. fetch.c
  51. fetch.h
  52. fsck-objects.c
  53. get-tar-commit-id.c
  54. git-add.sh
  55. git-am.sh
  56. git-applymbox.sh
  57. git-applypatch.sh
  58. git-archimport.perl
  59. git-bisect.sh
  60. git-branch.sh
  61. git-checkout.sh
  62. git-cherry.sh
  63. git-clone.sh
  64. git-commit.sh
  65. git-core.spec.in
  66. git-count-objects.sh
  67. git-cvsimport.perl
  68. git-diff.sh
  69. git-fetch.sh
  70. git-fmt-merge-msg.perl
  71. git-format-patch.sh
  72. git-grep.sh
  73. git-log.sh
  74. git-ls-remote.sh
  75. git-merge-octopus.sh
  76. git-merge-one-file.sh
  77. git-merge-recursive.py
  78. git-merge-resolve.sh
  79. git-merge-stupid.sh
  80. git-merge.sh
  81. git-octopus.sh
  82. git-parse-remote.sh
  83. git-prune.sh
  84. git-pull.sh
  85. git-push.sh
  86. git-rebase.sh
  87. git-relink.perl
  88. git-rename.perl
  89. git-repack.sh
  90. git-request-pull.sh
  91. git-reset.sh
  92. git-resolve.sh
  93. git-revert.sh
  94. git-send-email.perl
  95. git-sh-setup.sh
  96. git-shortlog.perl
  97. git-status.sh
  98. git-tag.sh
  99. git-verify-tag.sh
  100. git-whatchanged.sh
  101. git.sh
  102. gitk
  103. gitMergeCommon.py
  104. hash-object.c
  105. http-fetch.c
  106. ident.c
  107. index.c
  108. init-db.c
  109. INSTALL
  110. local-fetch.c
  111. ls-files.c
  112. ls-tree.c
  113. mailinfo.c
  114. mailsplit.c
  115. Makefile
  116. merge-base.c
  117. merge-index.c
  118. mktag.c
  119. object.c
  120. object.h
  121. pack-check.c
  122. pack-objects.c
  123. pack.h
  124. patch-delta.c
  125. patch-id.c
  126. path.c
  127. peek-remote.c
  128. pkt-line.c
  129. pkt-line.h
  130. prune-packed.c
  131. quote.c
  132. quote.h
  133. read-cache.c
  134. read-tree.c
  135. README
  136. receive-pack.c
  137. refs.c
  138. refs.h
  139. rev-list.c
  140. rev-parse.c
  141. rsh.c
  142. rsh.h
  143. run-command.c
  144. run-command.h
  145. send-pack.c
  146. server-info.c
  147. setup.c
  148. sha1_file.c
  149. sha1_name.c
  150. show-branch.c
  151. show-index.c
  152. ssh-fetch.c
  153. ssh-pull.c
  154. ssh-push.c
  155. ssh-upload.c
  156. strbuf.c
  157. strbuf.h
  158. stripspace.c
  159. symbolic-ref.c
  160. tag.c
  161. tag.h
  162. tar-tree.c
  163. test-date.c
  164. test-delta.c
  165. tree.c
  166. tree.h
  167. unpack-file.c
  168. unpack-objects.c
  169. update-index.c
  170. update-ref.c
  171. update-server-info.c
  172. upload-pack.c
  173. usage.c
  174. var.c
  175. verify-pack.c
  176. write-tree.c