mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Include "executable" files in the index, as they are not necessarily binary (#7718)
This commit is contained in:
@@ -232,7 +232,7 @@ func addDelete(filename string, repo *Repository, batch rupture.FlushingBatch) e
|
||||
}
|
||||
|
||||
func isIndexable(entry *git.TreeEntry) bool {
|
||||
return entry.IsRegular()
|
||||
return entry.IsRegular() || entry.IsExecutable()
|
||||
}
|
||||
|
||||
// parseGitLsTreeOutput parses the output of a `git ls-tree -r --full-name` command
|
||||
|
Reference in New Issue
Block a user