mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This PR replaces all string refName as a type `git.RefName` to make the code more maintainable. Fix #15367 Replaces #23070 It also fixed a bug that tags are not sync because `git remote --prune origin` will not remove local tags if remote removed. We in fact should use `git fetch --prune --tags origin` but not `git remote update origin` to do the sync. Some answer from ChatGPT as ref. > If the git fetch --prune --tags command is not working as expected, there could be a few reasons why. Here are a few things to check: > >Make sure that you have the latest version of Git installed on your system. You can check the version by running git --version in your terminal. If you have an outdated version, try updating Git and see if that resolves the issue. > >Check that your Git repository is properly configured to track the remote repository's tags. You can check this by running git config --get-all remote.origin.fetch and verifying that it includes +refs/tags/*:refs/tags/*. If it does not, you can add it by running git config --add remote.origin.fetch "+refs/tags/*:refs/tags/*". > >Verify that the tags you are trying to prune actually exist on the remote repository. You can do this by running git ls-remote --tags origin to list all the tags on the remote repository. > >Check if any local tags have been created that match the names of tags on the remote repository. If so, these local tags may be preventing the git fetch --prune --tags command from working properly. You can delete local tags using the git tag -d command. --------- Co-authored-by: delvh <dev.lh@web.de> |
2 years ago | |
---|---|---|
.. | ||
foreachref | 2 years ago | |
internal | 2 years ago | |
pipeline | 2 years ago | |
tests/repos | 2 years ago | |
url | 2 years ago | |
README.md | 6 years ago | |
batch_reader.go | 2 years ago | |
blame.go | 2 years ago | |
blame_test.go | 2 years ago | |
blob.go | 2 years ago | |
blob_gogit.go | 2 years ago | |
blob_nogogit.go | 2 years ago | |
blob_test.go | 2 years ago | |
command.go | 2 years ago | |
command_race_test.go | 2 years ago | |
command_test.go | 2 years ago | |
commit.go | 2 years ago | |
commit_convert_gogit.go | 2 years ago | |
commit_info.go | 2 years ago | |
commit_info_gogit.go | 2 years ago | |
commit_info_nogogit.go | 2 years ago | |
commit_info_test.go | 2 years ago | |
commit_reader.go | 2 years ago | |
commit_test.go | 2 years ago | |
diff.go | 2 years ago | |
diff_test.go | 2 years ago | |
error.go | 2 years ago | |
git.go | 2 years ago | |
git_test.go | 2 years ago | |
hook.go | 2 years ago | |
last_commit_cache.go | 2 years ago | |
last_commit_cache_gogit.go | 2 years ago | |
last_commit_cache_nogogit.go | 2 years ago | |
log_name_status.go | 2 years ago | |
notes.go | 2 years ago | |
notes_gogit.go | 2 years ago | |
notes_nogogit.go | 2 years ago | |
notes_test.go | 2 years ago | |
parse_gogit.go | 2 years ago | |
parse_gogit_test.go | 2 years ago | |
parse_nogogit.go | 2 years ago | |
parse_nogogit_test.go | 2 years ago | |
ref.go | 2 years ago | |
ref_test.go | 2 years ago | |
remote.go | 2 years ago | |
repo.go | 2 years ago | |
repo_archive.go | 2 years ago | |
repo_attribute.go | 2 years ago | |
repo_attribute_test.go | 2 years ago | |
repo_base.go | 2 years ago | |
repo_base_gogit.go | 2 years ago | |
repo_base_nogogit.go | 2 years ago | |
repo_blame.go | 2 years ago | |
repo_blob.go | 2 years ago | |
repo_blob_gogit.go | 2 years ago | |
repo_blob_nogogit.go | 2 years ago | |
repo_blob_test.go | 2 years ago | |
repo_branch.go | 2 years ago | |
repo_branch_gogit.go | 2 years ago | |
repo_branch_nogogit.go | 2 years ago | |
repo_branch_test.go | 2 years ago | |
repo_commit.go | 2 years ago | |
repo_commit_gogit.go | 2 years ago | |
repo_commit_nogogit.go | 2 years ago | |
repo_commit_test.go | 2 years ago | |
repo_commitgraph.go | 2 years ago | |
repo_commitgraph_gogit.go | 2 years ago | |
repo_compare.go | 2 years ago | |
repo_compare_test.go | 2 years ago | |
repo_gpg.go | 2 years ago | |
repo_hook.go | 2 years ago | |
repo_index.go | 2 years ago | |
repo_language_stats.go | 2 years ago | |
repo_language_stats_gogit.go | 2 years ago | |
repo_language_stats_nogogit.go | 2 years ago | |
repo_language_stats_test.go | 2 years ago | |
repo_object.go | 2 years ago | |
repo_ref.go | 2 years ago | |
repo_ref_gogit.go | 2 years ago | |
repo_ref_nogogit.go | 2 years ago | |
repo_ref_test.go | 2 years ago | |
repo_stats.go | 2 years ago | |
repo_stats_test.go | 2 years ago | |
repo_tag.go | 2 years ago | |
repo_tag_gogit.go | 2 years ago | |
repo_tag_nogogit.go | 2 years ago | |
repo_tag_test.go | 2 years ago | |
repo_test.go | 2 years ago | |
repo_tree.go | 2 years ago | |
repo_tree_gogit.go | 2 years ago | |
repo_tree_nogogit.go | 2 years ago | |
sha1.go | 2 years ago | |
sha1_gogit.go | 2 years ago | |
sha1_nogogit.go | 2 years ago | |
sha1_test.go | 2 years ago | |
signature.go | 2 years ago | |
signature_gogit.go | 2 years ago | |
signature_nogogit.go | 2 years ago | |
submodule.go | 2 years ago | |
submodule_test.go | 2 years ago | |
tag.go | 2 years ago | |
tag_test.go | 2 years ago | |
tree.go | 2 years ago | |
tree_blob.go | 2 years ago | |
tree_blob_gogit.go | 2 years ago | |
tree_blob_nogogit.go | 2 years ago | |
tree_entry.go | 2 years ago | |
tree_entry_gogit.go | 2 years ago | |
tree_entry_mode.go | 2 years ago | |
tree_entry_nogogit.go | 2 years ago | |
tree_entry_test.go | 2 years ago | |
tree_gogit.go | 2 years ago | |
tree_nogogit.go | 2 years ago | |
utils.go | 2 years ago |
README.md
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.