mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Git - cleanup getRemotes() (#169839)
* Git - cleanup getRemotes() * Remove test for read-only remote as the code to determine that a remote is read-only has been moved out of the function that does the parsing
This commit is contained in:
@@ -213,18 +213,6 @@ suite('git', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
test('single remote (read-only)', () => {
|
||||
const sample = `[remote "origin"]
|
||||
url = https://github.com/microsoft/vscode.git
|
||||
fetch = +refs/heads/*:refs/remotes/origin/*
|
||||
pushurl = no_push
|
||||
`;
|
||||
|
||||
assert.deepStrictEqual(parseGitRemotes(sample), [
|
||||
{ name: 'origin', fetchUrl: 'https://github.com/microsoft/vscode.git', pushUrl: 'no_push', isReadOnly: true }
|
||||
]);
|
||||
});
|
||||
|
||||
test('single remote (multiple urls)', () => {
|
||||
const sample = `[remote "origin"]
|
||||
url = https://github.com/microsoft/vscode.git
|
||||
|
||||
Reference in New Issue
Block a user