mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 01:25:43 -05:00
Fixes #4
This commit is contained in:
@@ -30,7 +30,7 @@ See the Contributions tab above
|
||||
|
||||
## Release Notes
|
||||
|
||||
### 0.1.0
|
||||
### 0.1.1
|
||||
|
||||
- Improved blame annotations, now with sha and author by default
|
||||
- Add new blame annotation styles -- compact and expanded (default)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gitlens",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"author": "Eric Amodio",
|
||||
"publisher": "eamodio",
|
||||
"engines": {
|
||||
|
||||
@@ -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