From 6c505ec4b5fb0484ad514629ea40cf0ae109c6c8 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Wed, 15 May 2013 19:15:30 +0200 Subject: [PATCH] correct git log parsing to be correct --- libexec/gitlog-to-deblog.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libexec/gitlog-to-deblog.rb b/libexec/gitlog-to-deblog.rb index 4c12f0d..c404462 100755 --- a/libexec/gitlog-to-deblog.rb +++ b/libexec/gitlog-to-deblog.rb @@ -4,8 +4,9 @@ require 'erb' # Determines package name from the origin url on github. It's hackish, but it # works (mostly). def pkgname - originurl = `git config --get remote.origin.url`.strip - _, pkgname = originurl.match(/\/([a-z0-9\-_]+).git/i).to_a + # originurl = `basename $(git config --get remote.origin.url)`.strip + pkgname = `basename $(git config --get remote.origin.url) .git | tr '\n' ' '` + # _, pkgname = originurl.match(/\/([a-z0-9\-_]+).git/i).to_a pkgname end