summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2013-05-15 17:15:30 (GMT)
committer Mario Fetka <[email protected]>2013-05-15 17:15:30 (GMT)
commit6c505ec4b5fb0484ad514629ea40cf0ae109c6c8 (patch)
tree2cc86820d56807a410828c3f8ad42bf330361d26
parent38bc458f0f94d4a258f307a89ab95cef28a56c1c (diff)
correct git log parsing to be correct
-rwxr-xr-xlibexec/gitlog-to-deblog.rb5
1 files 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

Powered by Domaintechnik.at | Hosting - Domain - Webspace