From 656c713d6c549a1ae1dc25cdc1f9bb887dfd8440 Mon Sep 17 00:00:00 2001
From: Martin Afanasjew <martin@afanasjew.de>
Date: Thu, 2 Jun 2016 17:42:44 +0200
Subject: [PATCH] bottle: use short formula name in bottle commit

---
 Library/Homebrew/cmd/bottle.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 0f65bd9cb4..36c71f75a8 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -427,11 +427,12 @@ module Homebrew
         end
 
         unless ARGV.include? "--no-commit"
+          short_name = formula_name.split("/", -1).last
           pkg_version = bottle_hash["formula"]["pkg_version"]
 
           path.parent.cd do
             safe_system "git", "commit", "--no-edit", "--verbose",
-              "--message=#{formula_name}: #{update_or_add} #{pkg_version} bottle.",
+              "--message=#{short_name}: #{update_or_add} #{pkg_version} bottle.",
               "--", path
           end
         end
-- 
GitLab