gitea/modules
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
..
activitypub
analyze
appstate
auth
avatar
base
cache
charset
container
context
convert
csv
doctor
emoji
eventsource
generate
git Set no-tags in git fetch on compare (#20893) 2022-08-23 14:12:43 -04:00
gitgraph
graceful Support Proxy protocol (#12527) 2022-08-21 19:20:43 +01:00
hcaptcha
highlight
hostmatcher Add proxy host into allow list (#20798) 2022-08-16 20:15:54 -04:00
httpcache
httplib
indexer
json
lfs
log Disable doctor logging on panic (#20847) 2022-08-18 21:27:27 -04:00
markup
mcaptcha
metrics
migration
mirror
nosql
notification
options
packages Add migrate repo archiver and packages storage support on command line (#20757) 2022-08-16 12:05:15 +08:00
paginator
password
pprof
private Support Proxy protocol (#12527) 2022-08-21 19:20:43 +01:00
process
proxy
proxyprotocol Support Proxy protocol (#12527) 2022-08-21 19:20:43 +01:00
public
queue
recaptcha
references
regexplru
repository
secret
session
setting Enable contenthash in filename for dynamic assets (#20813) 2022-08-23 20:58:04 +08:00
sitemap
ssh Support Proxy protocol (#12527) 2022-08-21 19:20:43 +01:00
storage
structs
svg
sync
templates Enable contenthash in filename for dynamic assets (#20813) 2022-08-23 20:58:04 +08:00
test
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util
validation
web