From 00f98b8ca6d17e930a592e0a8c428ddebe0d5618 Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Mon, 15 Dec 2014 17:02:38 +0200 Subject: [PATCH] fix #30 --- lib/github_changelog_generator/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github_changelog_generator/parser.rb b/lib/github_changelog_generator/parser.rb index 7872ca7..e66ba45 100644 --- a/lib/github_changelog_generator/parser.rb +++ b/lib/github_changelog_generator/parser.rb @@ -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]}"