]> git.ipfire.org Git - thirdparty/git.git/commit - shell.c
Record the command invocation path early
authorJohannes Sixt <johannes.sixt@telecom.at>
Mon, 21 Jul 2008 19:19:52 +0000 (21:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 26 Jul 2008 00:41:13 +0000 (17:41 -0700)
commite1464ca7bb0d705210ba7198f004b2fb2b807e12
tree853d900a35dffa52c1001f3408eca528229afe5c
parent46beb55988e68da04c2e9d319c71b9b940f0854c
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>
exec_cmd.c
exec_cmd.h
git.c
receive-pack.c
shell.c
upload-pack.c