mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-30 05:46:09 +01:00
ef0ce374a5
- `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
(cherry picked from commit
|
||
---|---|---|
.. | ||
cherry_pick.go | ||
commit.go | ||
content.go | ||
content_test.go | ||
diff.go | ||
diff_test.go | ||
file.go | ||
file_test.go | ||
patch.go | ||
temp_repo.go | ||
temp_repo_test.go | ||
tree.go | ||
tree_test.go | ||
update.go | ||
upload.go |