mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-09 01:32:40 -05:00
Fixes #4
This commit is contained in:
@@ -30,7 +30,7 @@ See the Contributions tab above
|
|||||||
|
|
||||||
## Release Notes
|
## Release Notes
|
||||||
|
|
||||||
### 0.1.0
|
### 0.1.1
|
||||||
|
|
||||||
- Improved blame annotations, now with sha and author by default
|
- Improved blame annotations, now with sha and author by default
|
||||||
- Add new blame annotation styles -- compact and expanded (default)
|
- Add new blame annotation styles -- compact and expanded (default)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitlens",
|
"name": "gitlens",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"author": "Eric Amodio",
|
"author": "Eric Amodio",
|
||||||
"publisher": "eamodio",
|
"publisher": "eamodio",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ function gitCommand(cwd: string, ...args) {
|
|||||||
|
|
||||||
export default class Git {
|
export default class Git {
|
||||||
static normalizePath(fileName: string, repoPath: string) {
|
static normalizePath(fileName: string, repoPath: string) {
|
||||||
|
repoPath = repoPath.replace(/\\/g, '/');
|
||||||
if (isAbsolute(fileName) && fileName.startsWith(repoPath)) {
|
if (isAbsolute(fileName) && fileName.startsWith(repoPath)) {
|
||||||
fileName = relative(repoPath, fileName);
|
fileName = relative(repoPath, fileName);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user