Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message when viewing git history #5

Open
ssmmtt opened this issue Mar 28, 2022 · 29 comments
Open

Error message when viewing git history #5

ssmmtt opened this issue Mar 28, 2022 · 29 comments
Labels
help wanted Extra attention is needed

Comments

@ssmmtt
Copy link

ssmmtt commented Mar 28, 2022

动画

@kometenstaub
Copy link
Owner

@Vinzent03 any ideas?

@kometenstaub
Copy link
Owner

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

@ssmmtt
Copy link
Author

ssmmtt commented Mar 28, 2022

All files

@Vinzent03
Copy link

@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)

@kometenstaub
Copy link
Owner

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

@ssmmtt
Copy link
Author

ssmmtt commented Mar 28, 2022

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

@Vinzent03
Copy link

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

@ssmmtt
Copy link
Author

ssmmtt commented Mar 29, 2022

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

image

@ssmmtt
Copy link
Author

ssmmtt commented Mar 29, 2022

image

@ssmmtt
Copy link
Author

ssmmtt commented Mar 29, 2022

image

@kometenstaub
Copy link
Owner

Please tell us which plugin versions you use.

@ssmmtt
Copy link
Author

ssmmtt commented Mar 29, 2022

Please tell us which plugin versions you use.

Newest.
image

@kometenstaub
Copy link
Owner

And for the Git plugin?

@Vinzent03
Copy link

And obsidian git?

@ssmmtt
Copy link
Author

ssmmtt commented Mar 29, 2022

And obsidian git?

Newest.
image

@kometenstaub
Copy link
Owner

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
Copy link
Owner

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

@kometenstaub
Copy link
Owner

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

@ssmmtt
Copy link
Author

ssmmtt commented Mar 29, 2022

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
Copy link
Author

ssmmtt commented Mar 29, 2022

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

@kometenstaub
Copy link
Owner

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

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

@kometenstaub kometenstaub added the help wanted Extra attention is needed label Mar 29, 2022
@ssmmtt
Copy link
Author

ssmmtt commented Mar 30, 2022

Okay thank you !

@kometenstaub
Copy link
Owner

Is your Git version up-to-date?

@ssmmtt
Copy link
Author

ssmmtt commented Apr 3, 2022

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
Copy link
Author

ssmmtt commented Apr 6, 2022

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

@ku-zhen
Copy link

ku-zhen commented Jan 4, 2023

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

@kometenstaub
Copy link
Owner

@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.

@Vinzent03
Copy link

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.

@ku-zhen
Copy link

ku-zhen commented Jan 7, 2023

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~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants