We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7de7362 + 94409ed commit 39b751cCopy full SHA for 39b751c
src/github/utils.py
@@ -56,6 +56,13 @@ def get_remote_info():
56
if result:
57
return result.groups()
58
else:
59
+ # Whilst repos are usually configured with a postfix of ".git"
60
+ # this is by convention only. Github happily handles requests
61
+ # without the postfix.
62
+ pattern = re.compile(r'([^:/]+)/([^/]+)')
63
+ result = pattern.search(line)
64
+ if result:
65
+ return result.groups()
66
raise Exception("invalid user and repo name")
67
elif stderr:
68
for line in stderr.splitlines():
0 commit comments