]> git.ipfire.org Git - thirdparty/git.git/commit - git-sh-setup.sh
git-sh-setup: define workaround wrappers before they are used
authorJunio C Hamano <gitster@pobox.com>
Wed, 16 May 2012 17:36:01 +0000 (10:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 May 2012 17:44:04 +0000 (10:44 -0700)
commit10587ce6dfb479cf4930657e173b673031deaa06
tree29d9fad99ef041bf457c01b7caff3ac4e273d1c5
parentbe39048a7385157e4b7baabd3e64fe186b428ea1
git-sh-setup: define workaround wrappers before they are used

Recently we tweaked this scriptlet to let mingw port redefine "pwd" to
always return Windows-style path, but the code to do so came after the
first use of "pwd" to set up $GIT_DIR shell variable.

Move the block to define these workaround wrappers, so that everything
everything that executes when the scriptlet is dot-sourced uses the
replacements.

Noticed-by: Ramsay Jones
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-sh-setup.sh