diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/update.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index 9679c0f8e..0ad66b8b4 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -5,6 +5,8 @@ #: If `--merge` is specified then `git merge` is used to include updates #: (rather than `git rebase`). +source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh" + brew() { "$HOMEBREW_BREW_FILE" "$@" } @@ -307,6 +309,9 @@ EOS # ensure GIT_CONFIG is unset as we need to operate on .git/config unset GIT_CONFIG + # only allow one instance of brew update + lock update + chdir "$HOMEBREW_REPOSITORY" git_init_if_necessary # rename Taps directories |
