Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
On Windows portable version, moving QOwnNotes to a different drive causes git versioning to silently fail #1192
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.
On Windows Portable mode
After moving QOwnNotes folder to Z: drive
path shown in settings:
Reselecting path to git executable (which is now on a different drive)
before oking settings:
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.
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