obsidian-version-history-diff icon indicating copy to clipboard operation
obsidian-version-history-diff copied to clipboard

Error message when viewing git history

Open ssmmtt opened this issue 2 years ago • 29 comments

动画

ssmmtt avatar Mar 28 '22 11:03 ssmmtt

@Vinzent03 any ideas?

kometenstaub avatar Mar 28 '22 12:03 kometenstaub

@ssmmtt Does it happen with all files? Only with this one?

kometenstaub avatar Mar 28 '22 12:03 kometenstaub

All files

ssmmtt avatar Mar 28 '22 12:03 ssmmtt

@ssmmtt In general, some more information would be quite useful.

Which plugin versions are you using? Could you wait until the backup is done? (The push notification came after you tried to get the diff) Does it work for previously committed files? Could you share output in the console? (CTRL + SHIFT + I)

Vinzent03 avatar Mar 28 '22 12:03 Vinzent03

Does it also happen with files that only contain ASCII characters (including their path)? It should work fine with Unicode, though.

kometenstaub avatar Mar 28 '22 12:03 kometenstaub

Strange, it works fine on my home computer, and I will try it on the company computer tomorrow. image

ssmmtt avatar Mar 28 '22 13:03 ssmmtt

@ssmmtt Do you have different plugin versions on your machines installed? In case it doesn't work, can you share the console?

Vinzent03 avatar Mar 28 '22 16:03 Vinzent03

@ssmmtt Do you have different plugin versions on your machines installed? In case it doesn't work, can you share the console?

image

ssmmtt avatar Mar 29 '22 02:03 ssmmtt

image

ssmmtt avatar Mar 29 '22 02:03 ssmmtt

image

ssmmtt avatar Mar 29 '22 03:03 ssmmtt

Please tell us which plugin versions you use.

kometenstaub avatar Mar 29 '22 10:03 kometenstaub

Please tell us which plugin versions you use.

Newest. image

ssmmtt avatar Mar 29 '22 10:03 ssmmtt

And for the Git plugin?

kometenstaub avatar Mar 29 '22 10:03 kometenstaub

And obsidian git?

Vinzent03 avatar Mar 29 '22 10:03 Vinzent03

And obsidian git?

Newest. image

ssmmtt avatar Mar 29 '22 10:03 ssmmtt

Since it works on the other machine, I wonder whether Git is in a bad state on this machine/whether a reinstall of the Git plugin might help.

kometenstaub avatar Mar 29 '22 10:03 kometenstaub

The error message is a bit weird. It is in single quotes, but also has double quotes at the beginning.

kometenstaub avatar Mar 29 '22 10:03 kometenstaub

Please uninstall and reinstall Obsidian Git and see whether you can reproduce the error. Make sure to backup your settings.

kometenstaub avatar Mar 29 '22 10:03 kometenstaub

Please uninstall and reinstall Obsidian Git and see whether you can reproduce the error. Make sure to backup your settings.

Okay, I'll try.

ssmmtt avatar Mar 29 '22 10:03 ssmmtt

I tried it, and it's the same. It's not a big problem. I can use it at home.

ssmmtt avatar Mar 29 '22 12:03 ssmmtt

No idea why it doesn’t work on that computer. :/

I’ll leave this open in case someone else has an idea.

kometenstaub avatar Mar 29 '22 19:03 kometenstaub

Okay thank you !

ssmmtt avatar Mar 30 '22 03:03 ssmmtt

Is your Git version up-to-date?

kometenstaub avatar Apr 03 '22 09:04 kometenstaub

Is your Git version up-to-date?

Oh, by the way, I'm using the git that comes with MinGW-w64. I'll try updating it when the holiday is over.

ssmmtt avatar Apr 03 '22 15:04 ssmmtt

I looked at it. It's the latest version. image

ssmmtt avatar Apr 06 '22 02:04 ssmmtt

hello,I install this plugin today,and encounter the same problem:

image

  • OS:windows10
  • git version 2.24.1.windows.2
  • version history diff plugin:2.0.9
  • obsidian git plugin:2.14.0

ku-zhen avatar Jan 04 '23 08:01 ku-zhen

@wuzhen97 This seems to be a different issue. The original issue seems to stem from bad quotes, yours is that it doesn't like the path.

It may have the same root problem, that it cannot work with non-Latin characters. @Vinzent03 Could that be somehow related? I don't think this is fixable from my end.

kometenstaub avatar Jan 06 '23 18:01 kometenstaub

Hmm I don't know how to fix that. I tried adding -- to git show, but that doesn't work at all. I'm just passing the file path to the log method of simple-git. I strongly expect they set -- themselves. I don't know on which command exactly that error is thrown.

Vinzent03 avatar Jan 06 '23 21:01 Vinzent03

yeah,I may have found the cause of my problem:Before, my .git folder was outside the vault. Now, I set it inside the vault, and the problem is solved. thanks~

ku-zhen avatar Jan 07 '23 01:01 ku-zhen