0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-27 23:15:51 +01:00
zeripath aa2e473991
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>
2022-08-23 14:12:43 -04:00
..
2022-08-21 19:20:43 +01:00
2022-07-12 23:32:37 +02:00
2022-08-21 19:20:43 +01:00
2022-06-25 19:06:01 +02:00
2022-08-21 19:20:43 +01:00
2022-08-08 13:07:42 +08:00
2022-08-11 17:48:23 +02:00