1 file changed
+2
-4
@@ -81,10 +81,8 @@ def get_repo_name(repo: Path) -> Tuple[str, str]:
|
||||
return "-", "-"
|
||||
|
||||
try:
|
||||
cmd = ["git", "-C", repo.as_posix(), "config", "--get",
|
||||
"remote.origin.url"]
|
||||
result: str = check_output(
|
||||
cmd, stderr=DEVNULL).decode(encoding="utf-8")
|
||||
cmd = ["git", "-C", repo.as_posix(), "config", "--get", "remote.origin.url"]
|
||||
result: str = check_output(cmd, stderr=DEVNULL).decode(encoding="utf-8")
|
||||
substrings: List[str] = result.strip().split("/")[-2:]
|
||||
|
||||
orga: str = substrings[0] if substrings[0] else "-"
|
||||
|
||||
Reference in new issue
Block a user