You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git repositories need +x permissions on all files in .git/hooks in order to push.
permissions are not maintained in Onedrive
so must run chmod +x ./.git/hooks/* per session
any ideas for a more stable solution?
I have a repository located in onedrive. The files all synchronize perfectly with Onedriver. However there is a problem whenever pushing or triggering any kind of git hooks.
For example, when attempting to push, I get this error:
The solution I've found is to run chmod +x ./.git/hooks/* from the project directory. The changes apply for the duration of the session, but must be repeated in a new session.
Can anyone think of a more stable solution?
The text was updated successfully, but these errors were encountered:
As you've found out, the issue is that file permissions are not persistent, because OneDrive doesn't have a concept of file permissions where we could store them. It would be nice if we could somehow make permissions persistent somehow. One possible solution would be making everything executable by default, but there might be a more elegant way to do this (I'll have to think on this).
Summary;
.git/hooks
in order to push.chmod +x ./.git/hooks/*
per sessionI have a repository located in onedrive. The files all synchronize perfectly with Onedriver. However there is a problem whenever pushing or triggering any kind of git hooks.
For example, when attempting to push, I get this error:
The solution I've found is to run
chmod +x ./.git/hooks/*
from the project directory. The changes apply for the duration of the session, but must be repeated in a new session.Can anyone think of a more stable solution?
The text was updated successfully, but these errors were encountered: