mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
new branch
This commit is contained in:
@@ -1116,15 +1116,17 @@ export class Repository {
|
||||
}
|
||||
|
||||
let mode: string;
|
||||
let add: string = '';
|
||||
|
||||
try {
|
||||
const details = await this.getObjectDetails('HEAD', path);
|
||||
mode = details.mode;
|
||||
} catch (err) {
|
||||
mode = '100644';
|
||||
add = '--add';
|
||||
}
|
||||
|
||||
await this.run(['update-index', '--cacheinfo', mode, hash, path]);
|
||||
await this.run(['update-index', add, '--cacheinfo', mode, hash, path]);
|
||||
}
|
||||
|
||||
async checkout(treeish: string, paths: string[], opts: { track?: boolean } = Object.create(null)): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user