1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-22 07:34:26 +00: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-05-06 10:12:30 +01:00
2022-01-20 18:46:10 +01:00
2022-08-21 19:20:43 +01:00
2020-10-02 23:37:53 -04:00
2022-01-19 19:31:39 -05:00
2022-01-20 18:46:10 +01:00
2022-07-12 23:32:37 +02:00
2022-08-21 19:20:43 +01:00
2022-01-20 18:46:10 +01:00
2022-06-25 19:06:01 +02:00
2022-08-21 19:20:43 +01:00
2021-12-20 04:41:31 +00:00
2020-04-05 07:20:50 +01:00
2022-08-08 13:07:42 +08:00
2022-04-25 13:55:12 +08:00
2022-08-11 17:48:23 +02:00