diff options
| author | Mike McQuaid | 2016-01-26 17:06:25 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-01-27 10:25:34 +0000 |
| commit | e07b5a98e07121dbca02b2bba42b32caad7d7ff7 (patch) | |
| tree | 52a428882a44dae60f2020c5831848db25f59a33 /Library/Homebrew/cmd | |
| parent | 99fd172ea89c1270e46e938d729aa28c9797da31 (diff) | |
| download | brew-e07b5a98e07121dbca02b2bba42b32caad7d7ff7.tar.bz2 | |
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 <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/update-bash.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
