chmod change applied via `git update-index` is undone by committing in Desktop
See original GitHub issueDescription
The desktop app does not seem to support changing file permissions, at least on Windows. No functionality exists in-app for it to happen, and if it’s manually set on the command-line via git update-index --chmod=+x filename
, the change will not be pushed.
Version
GitHub Desktop version: Chocolate-Covered Yaks (3.3.4.0) 50415df
OS version: Win7x64 (Microsoft Windows [Version 6.1.7601])
Steps to Reproduce
git update-index --chmod=+x filename
- Edit other files, commit everything via desktop
- Push, realize chmod didn’t go with it, 😭
Expected behavior: Commit gets pushed with the chmodded file as well
Actual behavior: Commit was pushed perfectly well, other than the chmod missing
Reproduces how often: Tried it a couple times, seems to happen every time.
Logs
I’m not seeing any errors or other log entries different than a commit without a changed chmod.
Additional Information
doing a git update-index
/ git commit
/ git push
on the command-line seems to push it fine on the same system.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:14 (5 by maintainers)
Top GitHub Comments
Slightly absurd that this still hasn’t been fixed. Thank goodness for the article posted above as a workaround.
I am still having the same problem with this, don’t know if there is any solution for it yet. But I can neither do it from GitHub Desktop nor from IntellijIdea Terminal with git commands. Anyway I am a Windows user and found a solution for it by committing and pushing via “Windows Git Bash” as stated here https://medium.com/@akash1233/change-file-permissions-when-working-with-git-repos-on-windows-ea22e34d5cee This worked for me changing the mode of the file successfully
Hope this helps other Windows users, cheers.