From 7b08e5a05cdc2e2be2e9e066c156b901e86dcc8a Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 19 Oct 2012 18:56:18 -0700 Subject: [PATCH] Sanity check --- Library/Contributions/cmds/brew-pull.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Contributions/cmds/brew-pull.rb b/Library/Contributions/cmds/brew-pull.rb index 5f4c1d2c0a..e66fdf41f7 100755 --- a/Library/Contributions/cmds/brew-pull.rb +++ b/Library/Contributions/cmds/brew-pull.rb @@ -12,6 +12,10 @@ if ARGV.empty? onoe 'This command requires at least one argument containing a URL or pull request number' end +if ARGV[0] == '--rebase' + onoe 'You meant `git pull --rebase`.' +end + ARGV.named.each do|arg| if arg.to_i > 0 url = 'https://github.com/mxcl/homebrew/pull/' + arg