forgejo/modules/git
Gusted ff468ab5e4
[BUG] Workaround borked Git version
- Backport #2335
- In Git version v2.43.1, the behavior of `GIT_FLUSH` was accidentially
flipped. This causes Forgejo to hang on the `check-attr` command,
because no output was being flushed.
- Workaround this by detecting if Git v2.43.1 is used and set
`GIT_FLUSH=0` thus getting the correct behavior.
- Ref: https://lore.kernel.org/git/CABn0oJvg3M_kBW-u=j3QhKnO=6QOzk-YFTgonYw_UvFS1NTX4g@mail.gmail.com/
- Resolves #2333.

(cherry picked from commit f68f880974)
2024-02-13 21:07:24 +01:00
..
foreachref Use refname:strip-2 instead of refname:short when syncing tags (#28797) (#28811) 2024-01-16 14:41:11 +00:00
internal
pipeline
tests/repos Support .git-blame-ignore-revs file (#26395) 2023-09-16 17:42:34 +00:00
url
batch_reader.go Make git batch operations use parent context timeout instead of default timeout (#26325) 2023-08-04 14:50:41 +02:00
blame.go Read previous info from git blame (#28306) (#28310) 2023-12-08 13:41:16 +01:00
blame_test.go Read previous info from git blame (#28306) (#28310) 2023-12-08 13:41:16 +01:00
blob.go
blob_gogit.go
blob_nogogit.go
blob_test.go
command.go Add option to disable ambiguous unicode characters detection (#28454) (#28499) 2023-12-22 12:07:01 +01:00
command_race_test.go
command_test.go
commit.go Convert git commit summary to valid UTF8. (#28356) (#28358) 2023-12-08 13:41:16 +01:00
commit_convert_gogit.go
commit_info.go
commit_info_gogit.go
commit_info_nogogit.go
commit_info_test.go
commit_reader.go
commit_test.go [GITEA] Detect file rename and show in history 2023-11-13 14:06:30 +01:00
diff.go
diff_test.go
error.go
git.go [BUG] Workaround borked Git version 2024-02-13 21:07:24 +01:00
git_test.go
hook.go
last_commit_cache.go [GITEA] Drop sha256-simd in favor of stdlib 2023-11-13 14:06:31 +01:00
last_commit_cache_gogit.go
last_commit_cache_nogogit.go
log_name_status.go Remove redundant nil check in WalkGitLog (#26773) 2023-08-29 11:03:43 +00:00
notes.go
notes_gogit.go
notes_nogogit.go
notes_test.go
parse_gogit.go
parse_gogit_test.go
parse_nogogit.go
parse_nogogit_test.go
README.md
ref.go
ref_test.go
remote.go
repo.go Fix git 2.11 error when checking IsEmpty (#27393) (#27397) 2023-10-02 22:36:18 +02:00
repo_archive.go Fix archive creating LFS hooks and breaking pull requests (#28848) (#28851) 2024-01-31 14:18:25 +01:00
repo_attribute.go [BUG] Workaround borked Git version 2024-02-13 21:07:24 +01:00
repo_attribute_test.go
repo_base.go
repo_base_gogit.go Update go dependencies and fix go-git (#28893) (#28934) 2024-01-31 16:46:41 +01:00
repo_base_nogogit.go
repo_blame.go
repo_blob.go
repo_blob_gogit.go
repo_blob_nogogit.go
repo_blob_test.go
repo_branch.go
repo_branch_gogit.go Make gogit Repository.GetBranchNames consistent (#28348) (#28386) 2023-12-08 13:41:16 +01:00
repo_branch_nogogit.go
repo_branch_test.go
repo_commit.go Add -F to commit search to treat keywords as strings (#28744) (#28748) 2024-01-16 14:39:23 +00:00
repo_commit_gogit.go
repo_commit_nogogit.go
repo_commit_test.go
repo_commitgraph.go
repo_commitgraph_gogit.go Update go dependencies and fix go-git (#28893) (#28934) 2024-01-31 16:46:41 +01:00
repo_compare.go
repo_compare_test.go
repo_gpg.go
repo_hook.go
repo_index.go
repo_language_stats.go
repo_language_stats_gogit.go
repo_language_stats_nogogit.go
repo_language_stats_test.go
repo_object.go
repo_ref.go
repo_ref_gogit.go
repo_ref_nogogit.go
repo_ref_test.go
repo_stats.go
repo_stats_test.go
repo_tag.go Use refname:strip-2 instead of refname:short when syncing tags (#28797) (#28811) 2024-01-16 14:41:11 +00:00
repo_tag_gogit.go
repo_tag_nogogit.go
repo_tag_test.go Use refname:strip-2 instead of refname:short when syncing tags (#28797) (#28811) 2024-01-16 14:41:11 +00:00
repo_test.go
repo_tree.go
repo_tree_gogit.go
repo_tree_nogogit.go
sha1.go
sha1_gogit.go
sha1_nogogit.go
sha1_test.go
signature.go
signature_gogit.go
signature_nogogit.go
submodule.go
submodule_test.go
tag.go
tag_test.go
tree.go
tree_blob.go
tree_blob_gogit.go
tree_blob_nogogit.go
tree_entry.go
tree_entry_gogit.go
tree_entry_mode.go
tree_entry_nogogit.go
tree_entry_test.go
tree_gogit.go
tree_nogogit.go
utils.go

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.