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:
Ladislau Szomoru
2023-01-09 14:24:35 +01:00
committed by GitHub
parent ed8b63d8bf
commit 65962c405e
2 changed files with 29 additions and 32 deletions

View File

@@ -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