diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb index 5d876fbb77ee8825c873de4b6cf76d1e8a2a2943..9eeabe13502c1fb49639a881a3346df1d4ea6060 100644 --- a/Library/Homebrew/cmd/pull.rb +++ b/Library/Homebrew/cmd/pull.rb @@ -94,6 +94,10 @@ module Homebrew revision = `git rev-parse --short HEAD`.strip branch = `git symbolic-ref --short HEAD`.strip + unless branch == "master" + opoo "Current branch is #{branch}: do you need to pull inside master?" + end + pull_url url changed_formulae = []