diff options
author | Johannes Sixt <johannes.sixt@telecom.at> | 2008-07-21 23:19:52 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-26 04:41:13 +0400 |
commit | e1464ca7bb0d705210ba7198f004b2fb2b807e12 (patch) | |
tree | 853d900a35dffa52c1001f3408eca528229afe5c /receive-pack.c | |
parent | 46beb55988e68da04c2e9d319c71b9b940f0854c (diff) |
Record the command invocation path early
We will need the command invocation path in system_path(). This path was
passed to setup_path(), but system_path() can be called earlier, for
example via:
main
commit_pager_choice
setup_pager
git_config
git_etc_gitconfig
system_path
Therefore, we introduce git_set_argv0_path() and call it as soon as
possible.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'receive-pack.c')
-rw-r--r-- | receive-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/receive-pack.c b/receive-pack.c index fa653b49fe..d44c19e6b5 100644 --- a/receive-pack.c +++ b/receive-pack.c @@ -482,7 +482,7 @@ int main(int argc, char **argv) if (!dir) usage(receive_pack_usage); - setup_path(NULL); + setup_path(); if (!enter_repo(dir, 0)) die("'%s': unable to chdir or not a git archive", dir); |