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