correct git log parsing to be correct

This commit is contained in:
Mario Fetka 2013-05-15 19:15:30 +02:00
parent 38bc458f0f
commit 6c505ec4b5
1 changed files with 3 additions and 2 deletions

View File

@ -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