Git chmod problem: Checkout screws exec bit
Fresh3 days ago
Mar 15, 202617413 viewsConfidence Score0%
0%
Problem
Under Ubuntu and Debian the last committed files are getting the execution bit set, when I try a checkout afterwards. It's quite strange and driving me nuts: Has anyone an idea, when and why the execution bit slips in? is set to . I have the file open in vim during the branch switching, if that's i…
Error Output
$ ls -l file -rw-r--r-- ... file # on branch master: $ git commit -m 'mode is 644' file [master 0123456] mode is 644 1 files changed, 1 insertions(…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Git chmod problem: Checkout screws exec bit
Low Risk
Not a Git user, but I believe that Git stores the entire file permission mask. That means that you have once set the file to executable, which Git picked up and replicated in the repository. Therefore you must change the file's permission mask itsel…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix