0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-08 14:48:16 -05:00
forgejo/services/repository/files
Gusted eeaef556c2
[BUG] Use correct empty commit ID
- `RemoveFilesFromIndex` used an hardcoded empty commit ID for the SHA1
object format, this would result in an error if the repository was
initialized to use the sha256 object format. Get the object format of
the Git repository and use that to get the empty commit id.
- Adds unit test.
- Resolves #3184
2024-04-16 01:08:15 +02:00
..
cherry_pick.go
commit.go
content.go [PERFORMANCE] git check-attr on bare repo if supported 2024-03-28 10:52:51 +01:00
content_test.go
diff.go
diff_test.go
file.go
file_test.go
patch.go
temp_repo.go [BUG] Use correct empty commit ID 2024-04-16 01:08:15 +02:00
temp_repo_test.go [BUG] Use correct empty commit ID 2024-04-16 01:08:15 +02:00
tree.go
tree_test.go
update.go [PERFORMANCE] git check-attr on bare repo if supported 2024-03-28 10:52:51 +01:00
upload.go [PERFORMANCE] git check-attr on bare repo if supported 2024-03-28 10:52:51 +01:00