diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb index 5d876fbb77..9eeabe1350 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 = []