mirror of
https://abf.rosa.ru/djam/abf-console-client-src.git
synced 2025-02-23 18:02:50 +00:00
Fix Fetch URL regexp for the case when git over ssh is used
This commit is contained in:
parent
565f546734
commit
9b02010a8e
1 changed files with 1 additions and 2 deletions
|
@ -45,8 +45,7 @@ def get_project_name(path=None):
|
||||||
e = os.environ.copy()
|
e = os.environ.copy()
|
||||||
e["LC_ALL"] = "C"
|
e["LC_ALL"] = "C"
|
||||||
output, ret_code = execute_command(['git', 'remote', 'show', 'origin', '-n'], cwd=path, env=e)
|
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:
|
if m:
|
||||||
owner_name, project_name = m.groups()
|
owner_name, project_name = m.groups()
|
||||||
# Cant tell abf owner from github loc, so let's hardocde it
|
# Cant tell abf owner from github loc, so let's hardocde it
|
||||||
|
|
Loading…
Add table
Reference in a new issue