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 status
On branch master
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: script.sh
$ git diff --cached
diff --git a/script.sh b/script.sh
old mode 100644
new mode 100755
Expected behavior
$ git status
On branch master
nothing to commit, working tree clean
$ git diff --cached
$ git diff
Here is a reproduction via Maven and a shell script (demo.sh). The only dependencies should be Java and Maven. It will create a Git directory named repo but will delete and re-create it every time.
The text was updated successfully, but these errors were encountered:
HarrisonMc555
changed the title
Hard reset does not change executable bit
Hard reset does not change executable bit if it is the only change
Feb 6, 2025
Version
7.1.0
Operating System
MacOS, Linux/Unix
Bug description
If you perform a hard reset and the only change for a file is the executable flag, then the file will not be modified in stage or on disk.
Actual behavior
Expected behavior
Relevant log output
Other information
Here is a reproduction via Maven and a shell script (
demo.sh
). The only dependencies should be Java and Maven. It will create a Git directory namedrepo
but will delete and re-create it every time.jgit-problem-demo.zip
The text was updated successfully, but these errors were encountered: