Merge branch 'hotfix/update-changelog'

This commit is contained in:
Petr Korolev 2014-12-16 17:42:11 +02:00
commit ba4db0e5f4

View File

@ -72,7 +72,7 @@ module GitHubChangelogGenerator
if !options[:user] && !options[:project]
remote = `git remote -vv`.split("\n")
match = /.*(?:[:\/])((?:-|\w|\.)*)\/((?:-|\w|\.)*)(?:\.git)?.*/.match(remote[0])
match = /.*(?:[:\/])((?:-|\w|\.)*)\/((?:-|\w|\.)*)?(?:\.git).*/.match(remote[0])
if match && match[1] && match[2]
puts "Detected user:#{match[1]}, project:#{match[2]}"