From e07b5a98e07121dbca02b2bba42b32caad7d7ff7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 26 Jan 2016 17:06:25 +0000 Subject: update-bash: fully resolve Git's path in hash. Otherwise Bash can cache a relative PATH and then get upset when it changes directory and cannot find it any more. Closes Homebrew/homebrew#48493. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/update-bash.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'Library/Homebrew/cmd/update-bash.sh') diff --git a/Library/Homebrew/cmd/update-bash.sh b/Library/Homebrew/cmd/update-bash.sh index b9ea060ae..47b811e4b 100644 --- a/Library/Homebrew/cmd/update-bash.sh +++ b/Library/Homebrew/cmd/update-bash.sh @@ -271,6 +271,7 @@ EOS odie "Git must be installed and in your PATH!" fi fi + hash -p "$(cd "$(dirname "$(which_git)")" && pwd -P)/git" git if [[ -z "$HOMEBREW_VERBOSE" ]] then -- cgit v1.2.3