-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ng-dev): set
_
as the username in the URL when creating authent…
…icated git URLs Github requires that both the username and password values are provided when setting a remote as an authenticated URL. Previously we did not see any issues with how we set authentication for because all usages of our tooling was performed in an environment that already had authentication set up, so if the authentication didn't work via the remote url, git just used the git cached credentials.
- Loading branch information
1 parent
c4dabf8
commit 3295ba3
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,13 +27,13 @@ export function getBranchPushMatcher(options: BranchPushMatchParameters) { | |
const {targetRepo, targetBranch, baseBranch, baseRepo, expectedCommits} = options; | ||
return jasmine.objectContaining({ | ||
remote: { | ||
repoUrl: `https://[email protected]/${targetRepo.owner}/${targetRepo.name}.git`, | ||
repoUrl: `https://_:[email protected]/${targetRepo.owner}/${targetRepo.name}.git`, | ||
name: `refs/heads/${targetBranch}`, | ||
}, | ||
head: jasmine.objectContaining({ | ||
newCommits: expectedCommits, | ||
ref: { | ||
repoUrl: `https://[email protected]/${baseRepo.owner}/${baseRepo.name}.git`, | ||
repoUrl: `https://_:[email protected]/${baseRepo.owner}/${baseRepo.name}.git`, | ||
name: baseBranch, | ||
}, | ||
}), | ||
|