aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2010-12-02 00:10:03 +0000
committerMike McQuaid2010-12-02 00:10:50 +0000
commit883f1e664f50a06339f6df04b6b8770d4c5a6746 (patch)
treef9cabb5b435ceb874e4a3756fd95c66e22be1e92
parent836e94df88317b59aed34bcd35bb082c84150541 (diff)
downloadhomebrew-883f1e664f50a06339f6df04b6b8770d4c5a6746.tar.bz2
Fix brew pull looking at uncommitted work.
-rwxr-xr-xLibrary/Contributions/examples/brew-pull.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Contributions/examples/brew-pull.rb b/Library/Contributions/examples/brew-pull.rb
index 2eccdd0d6..81a50bf76 100755
--- a/Library/Contributions/examples/brew-pull.rb
+++ b/Library/Contributions/examples/brew-pull.rb
@@ -33,10 +33,10 @@ HOMEBREW_REPOSITORY.cd do
safe_system 'git', 'am', '--signoff', '--whitespace=fix', patchpath
ohai 'Patch changed:'
- safe_system 'git', 'diff', 'HEAD~1', '--stat'
+ safe_system 'git', 'diff', 'HEAD^..HEAD', '--stat'
if install
- status, filename = `git diff HEAD~1 --name-status`.split()
+ status, filename = `git diff HEAD^..HEAD --name-status`.split()
# Don't try and do anything to removed files.
if (status == 'A' or status == 'M') and filename.include? '/Formula/'
formula = File.basename(filename, '.rb')