correct git log parsing to be correct
This commit is contained in:
parent
38bc458f0f
commit
6c505ec4b5
@ -4,8 +4,9 @@ require 'erb'
|
|||||||
# Determines package name from the origin url on github. It's hackish, but it
|
# Determines package name from the origin url on github. It's hackish, but it
|
||||||
# works (mostly).
|
# works (mostly).
|
||||||
def pkgname
|
def pkgname
|
||||||
originurl = `git config --get remote.origin.url`.strip
|
# originurl = `basename $(git config --get remote.origin.url)`.strip
|
||||||
_, pkgname = originurl.match(/\/([a-z0-9\-_]+).git/i).to_a
|
pkgname = `basename $(git config --get remote.origin.url) .git | tr '\n' ' '`
|
||||||
|
# _, pkgname = originurl.match(/\/([a-z0-9\-_]+).git/i).to_a
|
||||||
pkgname
|
pkgname
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user