]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-sh-setup.sh
git-sh-setup: be explicit where to dot-source git-sh-i18n from.
[thirdparty/git.git] / git-sh-setup.sh
index a8a4576342e519932be07fca5cbe2ee2fc0ab73b..240c7ebcd1449935d359e12b8bae817179f567bf 100644 (file)
@@ -2,9 +2,6 @@
 # to set up some variables pointing at the normal git directories and
 # a few helper shell functions.
 
-# Source git-sh-i18n for gettext support.
-. git-sh-i18n
-
 # Having this variable in your environment would break scripts because
 # you would cause "cd" to be taken to unexpected places.  If you
 # like CDPATH, define it for your interactive shell sessions without
@@ -46,6 +43,9 @@ git_broken_path_fix () {
 
 # @@BROKEN_PATH_FIX@@
 
+# Source git-sh-i18n for gettext support.
+. "$(git --exec-path)/git-sh-i18n"
+
 die () {
        die_with_status 1 "$@"
 }