Skip to content

Wrong mode mask when adding files to the index #430

Closed
@GaretJax

Description

@GaretJax

0fdf6c3 changed the mode mask from 0o111 to 0o100. We're encountering issues when committing files marked as executable:

After committing such a file with GitPython, our repo shows the following behavior:

# git status
On branch develop
nothing to commit, working directory clean

git status shows everything as clean (as it should be).

But if we git stash the changes:

# git stash
error: feeding unmodified <file> to diffcore
error: feeding unmodified <file> to diffcore
Saved working directory and index state WIP on develop: 6cdd426 ... (10136)
HEAD is now at 6cdd426 ... (10136)

And the stash turns up empty:

# git stash show

This is an issue for us because we end up in a dirty repo and can't execute some git commands anymore without resetting/stashing some inexistent changes.

I don't know what the rational behind the 0o100 mask is, but 0o111 works for our use case.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions