1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-27 09:11:53 -05:00
forgejo/services/repository/files
Gusted ef0ce374a5 [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

(cherry picked from commit eeaef556c2)
2024-04-16 06:47:31 +00:00
..
cherry_pick.go Fix reverting a merge commit failing (#28794) 2024-01-16 15:06:51 +00:00
commit.go Cache repository default branch commit status to reduce query on commit status table (#29444) 2024-03-11 23:36:58 +07:00
content.go [PERFORMANCE] git check-attr on bare repo if supported 2024-03-28 10:52:51 +01:00
content_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
diff.go Fix reverting a merge commit failing (#28794) 2024-01-16 15:06:51 +00:00
diff_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
file.go [GITEA] Allow user to select email for file operations in Web UI 2024-02-05 16:09:41 +01:00
file_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
patch.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
temp_repo.go [BUG] Use correct empty commit ID 2024-04-16 06:47:31 +00:00
temp_repo_test.go [BUG] Use correct empty commit ID 2024-04-16 06:47:31 +00:00
tree.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-26 22:30:26 +01:00
tree_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
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