mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Git - Unsafe repositories flow polish (#167728)
This commit is contained in:
@@ -686,6 +686,9 @@ export class Git {
|
||||
}
|
||||
|
||||
async addSafeDirectory(repositoryPath: string): Promise<void> {
|
||||
// safe.directory only supports paths with `/` as separator
|
||||
repositoryPath = repositoryPath.replaceAll('\\', '/');
|
||||
|
||||
await this.exec(repositoryPath, ['config', '--global', '--add', 'safe.directory', repositoryPath]);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user