mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-17 01:35:37 -05:00
Fixes #4
This commit is contained in:
@@ -23,6 +23,7 @@ function gitCommand(cwd: string, ...args) {
|
||||
|
||||
export default class Git {
|
||||
static normalizePath(fileName: string, repoPath: string) {
|
||||
repoPath = repoPath.replace(/\\/g, '/');
|
||||
if (isAbsolute(fileName) && fileName.startsWith(repoPath)) {
|
||||
fileName = relative(repoPath, fileName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user