file mode bits (the things you change via chmod) are reset

If I run a command like this on a file in a repo that v0 watches:
chmod a+x ./my_file.sh

Then commit / push it to github

Then do a git pull from v0, even if I lock my_file.sh…

Then make a change via v0 and push

my_file.sh now has its mode bits reset. My shell script is no longer executable. Is this a known issue?

This is a known issue, but I’ll ping the v0 team about it again

In the meantime, one workaround is to use a post-checkout git hook which will run a script every time you check out. You can use this to run your chmod script and set the permissions back without having to do it manually

Thanks Jacob – appreciated.