gitea/modules/git
Sijmen Schoon 66a9ef9036
Fix ref links in issue overviews for tags ()
* Properly generate ref URLs

Tags used to not generate correct URLs (src/branch/tags/1.0.0 instead of
src/tags/1.0.0).

Also cleans up some code around it with the created helper functions.

* Fix formatting and create migration

* Add copyright head to utils_test

* Use a raw query for the ref migration

* Remove semicolon

* Quote column and table names in migration SQL

* Change || to CONCAT, since MSSQL does not support ||

* Make migration engine aware

* Add missing import

* Move ref EndName and URL to the issue service

* Fix tests

* Add test for commit refs

* Update issue.go

* Use the right command for building JavaScript bundles

* Prepare for merge

* Check for refs/* before prepending in migration

* Update services/issue/issue_test.go

* Update modules/git/utils_test.go

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: techknowlogick <matti@mdranta.net>
..
pipeline Add basic repository lfs management ()
tests/repos Fix reading git notes from nested trees ()
README.md move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
blame.go Graceful: Cancel Process on monitor pages & HammerTime ()
blame_test.go Monitor all git commands; move blame to git package and replace git as a variable ()
blob.go Migrate to go-git/go-git v5.0.0 ()
blob_test.go Add Close() method to gogitRepository ()
cache.go Migrate to go-git/go-git v5.0.0 ()
command.go Support unicode emojis and remove emojify.js ()
command_test.go Fix nondeterministic behavior ()
commit.go Allow compare page to look up base, head, own-fork, forkbase-of-head ()
commit_archive.go Make archive prefixing configurable with a global setting ()
commit_info.go Migrate to go-git/go-git v5.0.0 ()
commit_info_test.go Add gitea-vet ()
commit_reader.go Migrate to go-git/go-git v5.0.0 ()
commit_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
diff.go Some refactor on git diff and ignore getting commit information failed on migrating pull request review comments ()
diff_test.go Some refactor on git diff and ignore getting commit information failed on migrating pull request review comments ()
error.go Handle push rejection in branch and upload ()
git.go Graceful: Xorm, RepoIndexer, Cron and Others ()
git_test.go Graceful: Xorm, RepoIndexer, Cron and Others ()
hook.go fix 500 when edit hook ()
notes.go Migrate to go-git/go-git v5.0.0 ()
notes_test.go Add Close() method to gogitRepository ()
parse.go Migrate to go-git/go-git v5.0.0 ()
parse_test.go Migrate to go-git/go-git v5.0.0 ()
ref.go move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
repo.go Handle push rejection in branch and upload ()
repo_attribute.go Make repository management section handle lfs locks ()
repo_blame.go Removed unnecessary conversions ()
repo_blob.go Migrate to go-git/go-git v5.0.0 ()
repo_blob_test.go Add Close() method to gogitRepository ()
repo_branch.go Migrate to go-git/go-git v5.0.0 ()
repo_branch_test.go Add Close() method to gogitRepository ()
repo_commit.go Convert plumbing.ErrObjectNotFound to git.ErrNotExist in getCommit ()
repo_commit_test.go Add Close() method to gogitRepository ()
repo_commitgraph.go Migrate to go-git/go-git v5.0.0 ()
repo_compare.go Allow compare page to look up base, head, own-fork, forkbase-of-head ()
repo_compare_test.go Remove SavePatch and generate patches on the fly ()
repo_gpg.go Sign merges, CRUD, Wiki and Repository initialisation with gpg key ()
repo_hook.go move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
repo_index.go Be more strict with git arguments ()
repo_language_stats.go Migrate to go-enry new version ()
repo_object.go Fixes - API File Contents bug ()
repo_ref.go Migrate to go-git/go-git v5.0.0 ()
repo_ref_test.go Add Close() method to gogitRepository ()
repo_stats.go Add top author stats to activity page ()
repo_stats_test.go Add top author stats to activity page ()
repo_tag.go Migrate to go-git/go-git v5.0.0 ()
repo_tag_test.go [API] enable paggination for ListRepoTags ()
repo_test.go Add Close() method to gogitRepository ()
repo_tree.go Sign merges, CRUD, Wiki and Repository initialisation with gpg key ()
sha1.go [API] Get a single commit via Ref ()
signature.go Migrate to go-git/go-git v5.0.0 ()
submodule.go Manage port in submodule refurl ()
submodule_test.go Fix submodule paths when AppSubUrl is not root ()
tag.go Fixes - Adds the /git/tags API endpoint ()
tree.go Migrate to go-git/go-git v5.0.0 ()
tree_blob.go Migrate to go-git/go-git v5.0.0 ()
tree_entry.go Migrate to go-git/go-git v5.0.0 ()
tree_entry_test.go Migrate to go-git/go-git v5.0.0 ()
utils.go Fix ref links in issue overviews for tags ()
utils_test.go Fix ref links in issue overviews for tags ()

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.