Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chmod permissions not being retained #5144

Closed
1 task done
archenovalis opened this issue Sep 15, 2024 · 1 comment
Closed
1 task done

chmod permissions not being retained #5144

archenovalis opened this issue Sep 15, 2024 · 1 comment

Comments

@archenovalis
Copy link

archenovalis commented Sep 15, 2024

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.46.0.windows.1
cpu: x86_64
built from commit: 2e6a859ffc0471f60f79c1256f766042b0d5d17d
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
feature: fsmonitor--daemon
libcurl: 8.9.0
OpenSSL: OpenSSL 3.2.2 4 Jun 2024
zlib: 1.3.1
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.19045.4894]
64-bit
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VIM
Custom Editor Path:
Default Branch Option:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Rebase
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

** insert your response here **

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

"Open Git Bash here"

chmod -c 777 file
python -m zipfile -c test.zip file
zipinfo test.zip
  • What did you expect to occur after running these commands?

permissions set and retained

  • What actually happened instead?

permissions were not retained. this was working until a week or so ago. i was using 2.43 but the issue persisted after upgrading to 2.46
image

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?
@dscho
Copy link
Member

dscho commented Sep 15, 2024

This is sadly nothing we can change because Windows' permission system is so vastly different from Unix' simplistic permission model (and honestly, Windows' ACLs are quite a bit more powerful).

In any case, this feature would have to be addressed by the Cygwin project, because the underlying POSIX emulation layer is implemented in the Cygwin runtime (which Git for Windows uses in the form of the MSYS2 runtime).

If you want to report this with the Cygwin project, please use this link.

@dscho dscho closed this as not planned Won't fix, can't repro, duplicate, stale Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants