gitHistoryVSCode icon indicating copy to clipboard operation
gitHistoryVSCode copied to clipboard

"Compare against previous version" doesn't work

Open dodok8 opened this issue 8 years ago • 18 comments

When I use VS code and gitHistory on git repository save in USB flash drive(F:), "Compare against previous version" doesn't work. It returns error message like

git log --pretty=oneline 6a210d55a11636791bba18da0308527c462efc76^1 -n 1 -- C:\f:\study\PythonAlgorithmStudy\"Baekjoon\1328_\352\263\240\354\270\265 \353\271\214\353\224\251v1.py"  (completed in 0.318s)
fatal: Invalid path 'C:/f:': No such file or directory

Original file name is 1328_고층 빌딩v1.py.

dodok8 avatar Aug 08 '18 15:08 dodok8

I have the same problem

MadaoChen avatar Aug 09 '18 02:08 MadaoChen

Same here.

tonyoldfield avatar Aug 10 '18 07:08 tonyoldfield

same here

kerhbal avatar Aug 12 '18 01:08 kerhbal

Yeah issue #297 I opened it a month ago. For some reason everyone is having their project paths prepended with C: or /..

RevFry avatar Aug 12 '18 06:08 RevFry

same here

gutmate avatar Aug 12 '18 11:08 gutmate

Compare against previous version" doesn't work for me too. I am on Windows VS Code 1.25.1 and it doesn't show me the changes done in the selected file and prints a message to Output as the "file is outside repository" which is incorrect as this worked completely fine after degrading my VS Code to 1.24.1 version. Hoping the fix at the earliest. Thank you in advance.

iamvips avatar Aug 13 '18 12:08 iamvips

Same here, Any Fixes?

AmitKKhanchandani avatar Aug 15 '18 04:08 AmitKKhanchandani

@DonJayamanne any update regarding this?

AmitKKhanchandani avatar Aug 24 '18 05:08 AmitKKhanchandani

Same problem.
git show xxxx:C:/e:/xxx/index.html (completed in 0.046s) fatal: Path 'C:/e:/xxx/index.html does not exist in xxx Renders addon useless.

Britford avatar Aug 30 '18 16:08 Britford

Same here with windows 10 and v1.26.1

erwanpoupard avatar Aug 31 '18 07:08 erwanpoupard

... same here:

git log --pretty=oneline -n1 4b3b1bc7758d913f92eacac3fdcd06840fb3495c  (completed in 0.165s)
git show --pretty=oneline --decorate=full --numstat 4b3b1bc7758d913f92eacac3fdcd06840fb3495c  (completed in 0.36s)
git show --numstat --pretty=oneline -M 4b3b1bc7758d913f92eacac3fdcd06840fb3495c  (completed in 0.153s)
git show --name-status --pretty=oneline -M 4b3b1bc7758d913f92eacac3fdcd06840fb3495c  (completed in 0.182s)
git remote get-url origin  (completed in 0.064s)
git log --pretty=oneline 4b3b1bc7758d913f92eacac3fdcd06840fb3495c^1 -n 1 -- C:\d:\projects\some-path\a-file.js  (completed in 0.166s)
fatal: Invalid path 'C:/d:': No such file or directory

git show 4b3b1bc7758d913f92eacac3fdcd06840fb3495c:C:/d:/projects/some-path/a-file.js  (completed in 0.155s)
fatal: Path 'C:/d:/projects/some-path/a-file.js' does not exist in '4b3b1bc7758d913f92eacac3fdcd06840fb3495c'

skydever avatar Aug 31 '18 10:08 skydever

PR #316 has an unofficial release posted. Would be really helpful to know if the PR also fixes this issue

ole1986 avatar Aug 31 '18 11:08 ole1986

Same here

ZippoLee12138 avatar Sep 11 '18 03:09 ZippoLee12138

it works on linux!

JWleo avatar Sep 11 '18 13:09 JWleo

@JWleo it would be good to know if th unofficial release from PR #316 also works for you.

By chance, can you test it?!

ole1986 avatar Sep 11 '18 14:09 ole1986

@ole1986 Fine. I will tell you about the result after testing.

JWleo avatar Sep 11 '18 14:09 JWleo

@ole1986 yeah,Cool!!!!!! It works on window10 by using your VSIX file to update the office realese0.42. Thanks. The office realese 0.42 is just fine on linux, so i don't need to install your VSIX file.

JWleo avatar Sep 13 '18 14:09 JWleo

I am still facing this issue, is this already part of the current release?

fatal: Invalid path 'C:/d:': No such file or directory

skydever avatar Oct 01 '18 09:10 skydever