From 5b6e6139939030f9bbed91e5e5f9d84c8c90e9e3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 2 Jan 2011 11:42:44 +0000 Subject: [PATCH] brew-pull: Only append "Closes" to last commit. --- Library/Contributions/examples/brew-pull.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Contributions/examples/brew-pull.rb b/Library/Contributions/examples/brew-pull.rb index 544645486d..d96811b6fa 100755 --- a/Library/Contributions/examples/brew-pull.rb +++ b/Library/Contributions/examples/brew-pull.rb @@ -38,7 +38,7 @@ HOMEBREW_REPOSITORY.cd do issue = urlmatch[2] if issue ohai "Patch closes issue ##{issue}" - message = `git log #{revision}.. --format=%B` + message = `git log HEAD^.. --format=%B` # If this is a pull request, append a close message. if !message.include? 'Closes #'