0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 18:54:37 +01:00
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 Refactor AssertExistsAndLoadBean to use generics (#20797) 2022-08-16 10:22:25 +08:00
analyze
appstate
auth
avatar
base
cache
charset Switch Unicode Escaping to a VSCode-like system (#19990) 2022-08-13 19:32:34 +01:00
container
context Fix disable download button (#20701) 2022-08-08 15:42:36 +02:00
convert Refactor AssertExistsAndLoadBean to use generics (#20797) 2022-08-16 10:22:25 +08:00
csv
doctor Fix git.Init for doctor sub-command (#20782) 2022-08-14 00:33:18 +08:00
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 Rework file highlight rendering and fix yaml copy-paste (#19967) 2022-07-30 21:17:43 +02:00
hostmatcher Add proxy host into allow list (#20798) 2022-08-16 20:15:54 -04:00
httpcache Add Cache-Control header to html and api responses, add no-transform (#20432) 2022-07-23 14:38:03 +08:00
httplib
indexer
json
lfs Removed some vestigial code related to Range bounds checks (#20312) 2022-07-28 11:04:36 +08:00
log Disable doctor logging on panic (#20847) 2022-08-18 21:27:27 -04:00
markup Should also support upper-case README files (#20581) 2022-08-01 20:15:40 +08:00
mcaptcha Add support mCaptcha as captcha provider (#20458) 2022-08-10 15:20:10 +02:00
metrics
migration
mirror Implement sync push mirror on commit (#19411) 2022-07-08 20:45:12 +01:00
nosql Fix various typos (#20338) 2022-07-12 23:32:37 +02:00
notification Refactor AssertExistsAndLoadBean to use generics (#20797) 2022-08-16 10:22:25 +08:00
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 Refactor AssertExistsAndLoadBean to use generics (#20797) 2022-08-16 10:22:25 +08:00
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 Add new API endpoints for push mirrors management (#19841) 2022-07-30 18:45:59 +02:00
svg
sync
templates Enable contenthash in filename for dynamic assets (#20813) 2022-08-23 20:58:04 +08:00
test Refactor AssertExistsAndLoadBean to use generics (#20797) 2022-08-16 10:22:25 +08:00
timeutil Remove useless JS operation for relative time tooltips (#20756) 2022-08-12 17:03:41 -04:00
translation Allow dev i18n to be more concurrent (#20159) 2022-07-04 12:17:09 +02:00
typesniffer Rework raw file http header logic (#20484) 2022-07-29 17:26:55 +02:00
updatechecker
upload
uri
user
util Fix SecToTime edge-cases (#20610) 2022-08-08 13:07:42 +08:00
validation
web refactor webhook *NewPost (#20729) 2022-08-11 17:48:23 +02:00