-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
On Windows portable version, moving QOwnNotes to a different drive causes git versioning to silently fail #1192
Comments
Thank you for your suggestion. |
Yes, Windows doesn't allow relative paths to an other drive.
it could also be a script or something else... EDIT: no we can't test that, because the git client will be in the search path on all other supported operating systems (but Windows) by default |
you should get a warning in the log widget |
19.4.5
|
There now is a new release, could you please test it and report if it works for you? |
Confirming that the warning popup shows |
Great, thank you for testing! |
So i'm on Windows and have git installed on my E: drive. I originally also had QOwnNotes portable version also on the E: drive. I moved the entire QOwnNotes folder to my Z: drive.
About 5 months later, QOwnNotes crashed while saving a note. Note empty; data lost. Checked the git repository; last commit was about 5 months ago despite versioning being on the entire time.
Current Behavior
On Windows Portable mode
git executable:
E:\Program Files\Git\bin\git.exe
turns to this after oking the settings dialog:
E:/Notes/QOwnNotes/Data/../../../Program Files/Git/bin/git.exe
git versioning through OQwnNotes works fine
After moving QOwnNotes folder to Z: drive
path shown in settings:
Z:/Notes/QOwnNotes/Data/../../../Program Files/Git/bin/git.exe
git versioning fails silently (nothing exists at that path)
Reselecting path to git executable (which is now on a different drive)
before oking settings:
E:\Program Files\Git\bin\git.exe
after oking settings:
Z:/Notes/QOwnNotes/Data/E:/Program Files/Git/bin/git.exe
git versioning silently fails (also that's not a valid path)
Expected Behavior
Expected QOwnNotes to popup an error message or something instead of silently failing the commit. Also shouldn't QOwnNotes test if the rewritten path actually points to a git executable? Currently, the git path selection dialog allows you to select any file at all (even non .exe files). And the path rewriting can result in invalid paths.
The text was updated successfully, but these errors were encountered: