Skip to content

Commit

Permalink
Support GitHub remote URL in the form of `https://[email protected]
Browse files Browse the repository at this point in the history
…/ORGANIZATION/REPOSITORY.git`
  • Loading branch information
PawelLipski committed Jul 23, 2022
1 parent d7ae586 commit 9fe3f02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## New in git-machete 3.11.3

- added: support GitHub remote URL in the form of `https://[email protected]/ORGANIZATION/REPOSITORY.git`

## New in git-machete 3.11.2

- fixed: `git machete` now correctly infers remote for fetching of branch when the branch is associated with more than one remote
Expand Down
7 changes: 4 additions & 3 deletions git_machete/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
# and use alternate remote domains to provide enterprise support.
GITHUB_DOMAIN = "github.com"
GITHUB_REMOTE_PATTERNS = [
"^https://github\\.com/(.*)/(.*)\\.git$",
"^git@github\\.com:(.*)/(.*)\\.git$",
"^ssh://git@github\\.com/(.*)/(.*)\\.git$"
r"^https://.*@github\.com/(.*)/(.*)\.git$",
r"^https://github\.com/(.*)/(.*)\.git$",
r"^git@github\.com:(.*)/(.*)\.git$",
r"^ssh://git@github\.com/(.*)/(.*)\.git$"
]


Expand Down

0 comments on commit 9fe3f02

Please sign in to comment.