Skip to content

Commit 7d01cce

Browse files
committed
set placeholder username for azuredevops clone url
1 parent 7020761 commit 7d01cce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/backend/src/repoManager.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ export class RepoManager implements IRepoManager {
218218
if (config.token) {
219219
const token = await getTokenFromConfig(config.token, connection.orgId, db, logger);
220220
return {
221+
// @note: If we don't provide a username, the password will be set as the username. This seems to work
222+
// for ADO cloud but not for ADO server. To fix this, we set a placeholder username to ensure the password
223+
// is set correctly
224+
username: 'user',
221225
password: token,
222226
}
223227
}

0 commit comments

Comments
 (0)