Skip to content
Snippets Groups Projects
Commit 68a654dd authored by Xu Cheng's avatar Xu Cheng
Browse files

pull: warning if we are not in master


Closes Homebrew/homebrew#39708.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent 1600658f
No related branches found
No related tags found
No related merge requests found
......@@ -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 = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment