Fixes issue where original filename got lost

Fixes file path normalization
This commit is contained in:
Eric Amodio
2016-09-15 12:33:43 -04:00
parent b617a90c5b
commit 7a604191a7
3 changed files with 18 additions and 8 deletions

View File

@@ -19,9 +19,10 @@ export function activate(context: ExtensionContext) {
return;
}
console.log(`GitLens active: ${workspace.rootPath}`);
const rootPath = workspace.rootPath.replace(/\\/g, '/');
console.log(`GitLens active: ${rootPath}`);
Git.repoPath(workspace.rootPath).then(repoPath => {
Git.repoPath(rootPath).then(repoPath => {
context.workspaceState.update(WorkspaceState.RepoPath, repoPath);
context.workspaceState.update(WorkspaceState.HasGitHistoryExtension, extensions.getExtension('donjayamanne.githistory') !== undefined);