GIT v1.6.4-rc0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkpW1egACgkQwMbZpPMRm5r2OACdFILgibfmb5lHdXPTmXFTLsOZ
elYAnRz+ppZbTx84DnleMabVCtjChJHA
=TUSi
-----END PGP SIGNATURE-----
Makefile: install 'git' in execdir

When a git command executes a subcommand, it uses the "git
foo" form, which relies on finding "git" in the PATH.
Normally this should not be a problem, since the same "git"
that was used to invoke git in the first place will be
found.  And if somebody invokes a "git" outside of the PATH
(e.g., by giving its absolute path), this case is already
covered: we put that absolute path onto the front of PATH.

However, if one is using "sudo", then sudo will execute the
"git" from the PATH, but pass along a restricted PATH that
may not contain the original "git" directory. In this case,
executing a subcommand will fail.

To solve this, we put the "git" wrapper itself into the
execdir; this directory is prepended to the PATH when git
starts, so the wrapper will always be found.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 file changed
tree: e5cf8b0e1e660eb837c2e5d98c2071a0a1e3bb57
  1. .gitattributes
  2. .gitignore
  3. .mailmap
  4. COPYING
  5. Documentation/
  6. GIT-VERSION-GEN
  7. INSTALL
  8. Makefile
  9. README
  10. abspath.c
  11. alias.c
  12. alloc.c
  13. archive-tar.c
  14. archive-zip.c
  15. archive.c
  16. archive.h
  17. arm/
  18. attr.c
  19. attr.h
  20. base85.c
  21. bisect.c
  22. bisect.h
  23. blob.c
  24. blob.h
  25. branch.c
  26. branch.h
  27. builtin-add.c
  28. builtin-annotate.c
  29. builtin-apply.c
  30. builtin-archive.c
  31. builtin-bisect--helper.c
  32. builtin-blame.c
  33. builtin-branch.c
  34. builtin-bundle.c
  35. builtin-cat-file.c
  36. builtin-check-attr.c
  37. builtin-check-ref-format.c
  38. builtin-checkout-index.c
  39. builtin-checkout.c
  40. builtin-clean.c
  41. builtin-clone.c
  42. builtin-commit-tree.c
  43. builtin-commit.c
  44. builtin-config.c
  45. builtin-count-objects.c
  46. builtin-describe.c
  47. builtin-diff-files.c
  48. builtin-diff-index.c
  49. builtin-diff-tree.c
  50. builtin-diff.c
  51. builtin-fast-export.c
  52. builtin-fetch--tool.c
  53. builtin-fetch-pack.c
  54. builtin-fetch.c
  55. builtin-fmt-merge-msg.c
  56. builtin-for-each-ref.c
  57. builtin-fsck.c
  58. builtin-gc.c
  59. builtin-grep.c
  60. builtin-help.c
  61. builtin-http-fetch.c
  62. builtin-init-db.c
  63. builtin-log.c
  64. builtin-ls-files.c
  65. builtin-ls-remote.c
  66. builtin-ls-tree.c
  67. builtin-mailinfo.c
  68. builtin-mailsplit.c
  69. builtin-merge-base.c
  70. builtin-merge-file.c
  71. builtin-merge-ours.c
  72. builtin-merge-recursive.c
  73. builtin-merge.c
  74. builtin-mktree.c
  75. builtin-mv.c
  76. builtin-name-rev.c
  77. builtin-pack-objects.c
  78. builtin-pack-refs.c
  79. builtin-prune-packed.c
  80. builtin-prune.c
  81. builtin-push.c
  82. builtin-read-tree.c
  83. builtin-receive-pack.c
  84. builtin-reflog.c
  85. builtin-remote.c
  86. builtin-rerere.c
  87. builtin-reset.c
  88. builtin-rev-list.c
  89. builtin-rev-parse.c
  90. builtin-revert.c
  91. builtin-rm.c
  92. builtin-send-pack.c
  93. builtin-shortlog.c
  94. builtin-show-branch.c
  95. builtin-show-ref.c
  96. builtin-stripspace.c
  97. builtin-symbolic-ref.c
  98. builtin-tag.c
  99. builtin-tar-tree.c
  100. builtin-unpack-objects.c
  101. builtin-update-index.c
  102. builtin-update-ref.c
  103. builtin-upload-archive.c
  104. builtin-verify-pack.c
  105. builtin-verify-tag.c
  106. builtin-write-tree.c
  107. builtin.h
  108. bundle.c
  109. bundle.h
  110. cache-tree.c
  111. cache-tree.h
  112. cache.h
  113. check-builtins.sh
  114. check-racy.c
  115. check_bindir
  116. color.c
  117. color.h
  118. combine-diff.c
  119. command-list.txt
  120. commit.c
  121. commit.h
  122. compat/
  123. config.c
  124. config.mak.in
  125. configure.ac
  126. connect.c
  127. contrib/
  128. convert.c
  129. copy.c
  130. csum-file.c
  131. csum-file.h
  132. ctype.c
  133. daemon.c
  134. date.c
  135. decorate.c
  136. decorate.h
  137. delta.h
  138. diff-delta.c
  139. diff-lib.c
  140. diff-no-index.c
  141. diff.c
  142. diff.h
  143. diffcore-break.c
  144. diffcore-delta.c
  145. diffcore-order.c
  146. diffcore-pickaxe.c
  147. diffcore-rename.c
  148. diffcore.h
  149. dir.c
  150. dir.h
  151. editor.c
  152. entry.c
  153. environment.c
  154. exec_cmd.c
  155. exec_cmd.h
  156. fast-import.c
  157. fetch-pack.h
  158. fixup-builtins
  159. fsck.c
  160. fsck.h
  161. generate-cmdlist.sh
  162. git-add--interactive.perl
  163. git-am.sh
  164. git-archimport.perl
  165. git-bisect.sh
  166. git-compat-util.h
  167. git-cvsexportcommit.perl
  168. git-cvsimport.perl
  169. git-cvsserver.perl
  170. git-difftool--helper.sh
  171. git-difftool.perl
  172. git-filter-branch.sh
  173. git-gui/
  174. git-instaweb.sh
  175. git-lost-found.sh
  176. git-merge-octopus.sh
  177. git-merge-one-file.sh
  178. git-merge-resolve.sh
  179. git-mergetool--lib.sh
  180. git-mergetool.sh
  181. git-parse-remote.sh
  182. git-pull.sh
  183. git-quiltimport.sh
  184. git-rebase--interactive.sh
  185. git-rebase.sh
  186. git-relink.perl
  187. git-repack.sh
  188. git-request-pull.sh
  189. git-send-email.perl
  190. git-sh-setup.sh
  191. git-stash.sh
  192. git-submodule.sh
  193. git-svn.perl
  194. git-web--browse.sh
  195. git.c
  196. git.spec.in
  197. gitk-git/
  198. gitweb/
  199. graph.c
  200. graph.h
  201. grep.c
  202. grep.h
  203. hash-object.c
  204. hash.c
  205. hash.h
  206. help.c
  207. help.h
  208. http-push.c
  209. http-walker.c
  210. http.c
  211. http.h
  212. ident.c
  213. imap-send.c
  214. index-pack.c
  215. levenshtein.c
  216. levenshtein.h
  217. list-objects.c
  218. list-objects.h
  219. ll-merge.c
  220. ll-merge.h
  221. lockfile.c
  222. log-tree.c
  223. log-tree.h
  224. mailmap.c
  225. mailmap.h
  226. match-trees.c
  227. merge-file.c
  228. merge-index.c
  229. merge-recursive.c
  230. merge-recursive.h
  231. merge-tree.c
  232. mktag.c
  233. mozilla-sha1/
  234. name-hash.c
  235. object.c
  236. object.h
  237. pack-check.c
  238. pack-redundant.c
  239. pack-refs.c
  240. pack-refs.h
  241. pack-revindex.c
  242. pack-revindex.h
  243. pack-write.c
  244. pack.h
  245. pager.c
  246. parse-options.c
  247. parse-options.h
  248. patch-delta.c
  249. patch-id.c
  250. patch-ids.c
  251. patch-ids.h
  252. path.c
  253. perl/
  254. pkt-line.c
  255. pkt-line.h
  256. ppc/
  257. preload-index.c
  258. pretty.c
  259. progress.c
  260. progress.h
  261. quote.c
  262. quote.h
  263. reachable.c
  264. reachable.h
  265. read-cache.c
  266. reflog-walk.c
  267. reflog-walk.h
  268. refs.c
  269. refs.h
  270. remote.c
  271. remote.h
  272. rerere.c
  273. rerere.h
  274. revision.c
  275. revision.h
  276. run-command.c
  277. run-command.h
  278. send-pack.h
  279. server-info.c
  280. setup.c
  281. sha1-lookup.c
  282. sha1-lookup.h
  283. sha1_file.c
  284. sha1_name.c
  285. shallow.c
  286. shell.c
  287. shortlog.h
  288. show-index.c
  289. sideband.c
  290. sideband.h
  291. sigchain.c
  292. sigchain.h
  293. strbuf.c
  294. strbuf.h
  295. string-list.c
  296. string-list.h
  297. symlinks.c
  298. t/
  299. tag.c
  300. tag.h
  301. tar.h
  302. templates/
  303. test-chmtime.c
  304. test-ctype.c
  305. test-date.c
  306. test-delta.c
  307. test-dump-cache-tree.c
  308. test-genrandom.c
  309. test-match-trees.c
  310. test-parse-options.c
  311. test-path-utils.c
  312. test-sha1.c
  313. test-sha1.sh
  314. test-sigchain.c
  315. thread-utils.c
  316. thread-utils.h
  317. trace.c
  318. transport.c
  319. transport.h
  320. tree-diff.c
  321. tree-walk.c
  322. tree-walk.h
  323. tree.c
  324. tree.h
  325. unimplemented.sh
  326. unpack-file.c
  327. unpack-trees.c
  328. unpack-trees.h
  329. update-server-info.c
  330. upload-pack.c
  331. usage.c
  332. userdiff.c
  333. userdiff.h
  334. utf8.c
  335. utf8.h
  336. var.c
  337. walker.c
  338. walker.h
  339. wrapper.c
  340. write_or_die.c
  341. ws.c
  342. wt-status.c
  343. wt-status.h
  344. xdiff-interface.c
  345. xdiff-interface.h
  346. xdiff/