Make sure leading directories exist when pushing refs.

It does not matter if the only refs you push are directly
underneath heads and tags, but we forgot to make sure we have
leading directories so pushing tags/v0.99/1 would not have
worked.

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