Skip to content

Commit

Permalink
Fix Fetch URL regexp for the case when git over ssh is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Silakov committed Jun 20, 2019
1 parent 5cd6b92 commit 397dbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abf/console/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_project_name(path=None):
e["LC_ALL"] = "C"
output, ret_code = execute_command(['git', 'remote', 'show', 'origin', '-n'], cwd=path, env=e)

m = re.compile("^.*Fetch URL:\s+.*[:/]([^/]+)/([^/]+)[.]git$",re.MULTILINE).search(output)
m = re.compile("^.*Fetch URL:\s+.*[:/]([^/:]+)/([^/]+)\.git$",re.MULTILINE).search(output)
if m:
owner_name, project_name = m.groups()
# Cant tell abf owner from github loc, so let's hardocde it
Expand Down

0 comments on commit 397dbf8

Please sign in to comment.