mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
Git - use relative path in getObjectDetails() (#240783)
* Git - use relative path in `getObjectDetails()`
* 💄
This commit is contained in:
@@ -2017,7 +2017,10 @@ export class Repository implements Disposable {
|
||||
}
|
||||
|
||||
getObjectDetails(ref: string, filePath: string): Promise<{ mode: string; object: string; size: number }> {
|
||||
return this.run(Operation.GetObjectDetails, () => this.repository.getObjectDetails(ref, filePath));
|
||||
return this.run(Operation.GetObjectDetails, () => {
|
||||
const path = relativePath(this.repository.root, filePath).replace(/\\/g, '/');
|
||||
return this.repository.getObjectDetails(ref, path);
|
||||
});
|
||||
}
|
||||
|
||||
detectObjectType(object: string): Promise<{ mimetype: string; encoding?: string }> {
|
||||
|
||||
Reference in New Issue
Block a user