]> source.dussan.org Git - gitea.git/commit
Set no-tags in git fetch on compare (#20893)
authorzeripath <art27@cantab.net>
Tue, 23 Aug 2022 18:12:43 +0000 (19:12 +0100)
committerGitHub <noreply@github.com>
Tue, 23 Aug 2022 18:12:43 +0000 (14:12 -0400)
commitaa2e47399158ea5958638f5bb5f89967054bf48e
tree5d5a24300481765a4318d47e703395a7ad2a4bde
parent3d870f6dde9fa688a04d20150d224c4eb8c3f961
Set no-tags in git fetch on compare (#20893)

* Set no-tags in git fetch on compare

In the compare endpoint the git fetch is restricted to a certain branch however,
this does not completely prevent tag acquisition/pollution as git fetch will collect
any tags on that branch.

This causes pollution of the tag namespace and could cause confusion by users.

This PR adds `--no-tags` to the `git fetch` call.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update modules/git/repo_compare.go

* Update modules/git/repo_compare.go

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/git/repo_compare.go