Compare commits
4 Commits
v1.9.2
...
v1.2.0-rc1
Author | SHA1 | Date | |
---|---|---|---|
bbb0b8c17c | |||
0938a2dca3 | |||
9df0eafa25 | |||
e13eef8cfe |
.changelog.yml.dockerignore.drone.yml.drone.yml.sig.editorconfig.eslintrcpackage-lock.jsonpackage.jsonhome.goinit.goinstall.gometrics.gomodules.txtvendor.json
.github
.gitignore.golangci.yml.lgtm.npmrc.revive.toml.stylelintrcBSDmakefileCHANGELOG.mdCONTRIBUTING.mdDockerfileDockerfile.aarch64Dockerfile.rpiMAINTAINERSMakefileREADME.mdREADME_ZH.mdcmd
admin.goadmin_auth_ldap.goadmin_auth_ldap_test.gocert.gocmd.goconvert.godump.gogenerate.gohook.gokeys.gomigrate.goserv.goweb.goweb_graceful.go
conf
contrib
fhs-compliant-script
ide
init
k8s
migrate
pr
systemd
windows
custom/conf
docker
docs
.editorconfig.gitignoreMakefileREADME.mdREADME_ZH.mdconfig.yaml
go.modgo.sumcontent
doc
advanced.en-us.mdadvanced.fr-fr.mdadvanced.zh-cn.md
advanced
api-usage.en-us.mdapi-usage.zh-cn.mdconfig-cheat-sheet.en-us.mdconfig-cheat-sheet.zh-cn.mdcustomizing-gitea.en-us.mdcustomizing-gitea.zh-cn.mdexternal-renderers.en-us.mdhacking-on-gitea.en-us.mdhacking-on-gitea.zh-cn.mdlogging-documentation.en-us.mdmake.en-us.mdmake.fr-fr.mdmake.zh-cn.mdmigrations.en-us.mdoauth2-provider.mdspecific-variables.en-us.mdspecific-variables.zh-cn.mdthird-party-tools.en-us.md
features.en-us.mdfeatures.zh-cn.mdfeatures.zh-tw.mdfeatures
authentication.en-us.mdauthentication.zh-cn.mdauthentication.zh-tw.mdcomparison.en-us.mdcomparison.zh-cn.mdlocalization.en-us.mdlocalization.zh-cn.mdlocalization.zh-tw.mdwebhooks.en-us.mdwebhooks.zh-cn.mdwebhooks.zh-tw.md
help.en-us.mdhelp.zh-cn.mdhelp
installation.en-us.mdinstallation.fr-fr.mdinstallation.zh-cn.mdinstallation.zh-tw.mdinstallation
from-binary.en-us.mdfrom-binary.fr-fr.mdfrom-binary.zh-cn.mdfrom-binary.zh-tw.mdfrom-package.en-us.mdfrom-package.fr-fr.mdfrom-package.zh-cn.mdfrom-package.zh-tw.mdfrom-source.en-us.mdfrom-source.fr-fr.mdfrom-source.zh-cn.mdfrom-source.zh-tw.mdrun-as-service-in-ubuntu.en-us.mdrun-as-service-in-ubuntu.zh-cn.mdwindows-service.en-us.mdwindows-service.fr-fr.mdwindows-service.zh-cn.mdwindows-service.zh-tw.mdwith-docker.en-us.mdwith-docker.fr-fr.mdwith-docker.zh-cn.mdwith-docker.zh-tw.md
upgrade.en-us.mdupgrade.fr-fr.mdupgrade.zh-cn.mdupgrade.zh-tw.mdupgrade
usage.en-us.mdusage.zh-cn.mdusage
page
layouts
scripts
static
integrations
README.mdREADME_ZH.mdapi_admin_org_test.goapi_admin_test.goapi_branch_test.goapi_comment_test.goapi_fork_test.goapi_gpg_keys_test.goapi_helper_for_declarative_test.goapi_issue_label_test.goapi_issue_test.goapi_keys_test.goapi_org_test.goapi_pull_test.goapi_releases_test.goapi_repo_edit_test.goapi_repo_file_create_test.goapi_repo_file_delete_test.goapi_repo_file_helpers.goapi_repo_file_update_test.goapi_repo_get_contents_list_test.goapi_repo_get_contents_test.goapi_repo_git_blobs_test.goapi_repo_git_commits_test.goapi_repo_git_hook_test.goapi_repo_git_ref_test.goapi_repo_git_tags_test.goapi_repo_git_trees_test.goapi_repo_lfs_locks_test.goapi_repo_raw_test.goapi_repo_tags_test.goapi_repo_test.goapi_team_test.goapi_token_test.goapi_user_heatmap_test.goapi_user_orgs_test.goapi_user_search_test.goauth_ldap_test.gobare_repo_test.gobenchmarks_test.gobranches_test.gocors_test.gocreate_no_session_test.godelete_user_test.godownload_test.goeditor_test.goempty_repo_test.gogit_helper_for_declarative_test.gogit_test.gohtml_helper.gointegration_test.gointernal_test.goissue_test.golfs_getobject_test.golinks_test.go
main.gogitea-integration-meta
gitea-repositories
user2
repo1.git
HEADconfigdescription
hooks
applypatch-msg.samplecommit-msg.samplepost-receive
post-receive.d
post-update.samplepre-applypatch.samplepre-commit.samplepre-push.samplepre-rebase.samplepre-receivepre-receive.d
prepare-commit-msg.sampleupdateupdate.d
update.sampleinfo
objects
2a
4b
65
info
refs
heads
repo15.git
user3
repo3.git
HEADconfigdescription
hooks
applypatch-msg.samplecommit-msg.samplepost-receive
post-receive.d
post-update.samplepre-applypatch.samplepre-commit.samplepre-push.samplepre-rebase.samplepre-receivepre-receive.d
pre-receive.sampleprepare-commit-msg.sampleupdateupdate.d
update.sampleinfo
objects
20
27
2a
2f
d5
refs
heads
gitea-repositories-meta
limited_org
private_repo_on_limited_org.git
hooks
objects
74
a5
b8
refs
heads
public_repo_on_limited_org.git
privated_org
private_repo_on_private_org.git
config
hooks
fsmonitor-watchman.samplepre-commit.samplepre-rebase.samplepre-receive.sampleprepare-commit-msg.sample
objects
6e
7f
b7
refs
heads
public_repo_on_private_org.git
user12
repo10.git
HEADdescription
hooks
applypatch-msg.samplecommit-msg.sample
post-receive.d
post-update.samplepre-applypatch.samplepre-push.samplepre-receive.d
update.d
update.sampleinfo
refs
tags
user13
repo11.git
HEADdescription
hooks
applypatch-msg.samplecommit-msg.sample
post-receive.d
post-update.samplepre-applypatch.samplepre-push.samplepre-receive.d
update.d
update.sampleinfo
objects
0a
2a
4b
65
75
ed
info
refs
user2
commits_search_test.git
HEADconfigdescriptionpacked-refs
hooks
applypatch-msg.samplecommit-msg.samplepost-update.samplepre-applypatch.samplepre-push.sampleupdate.sample
info
objects
0a
0c
3e
3f
58
67
6e
85
8d
95
98
9f
c2
c5
d6
refs
heads
git_hooks_test.git
HEADconfigdescription
hooks
applypatch-msg.samplecommit-msg.sample
post-receive.d
post-update.samplepre-applypatch.samplepre-commit.samplepre-push.samplepre-rebase.samplepre-receive.d
prepare-commit-msg.sampleupdate.d
update.sampleinfo
objects
2a
4b
65
info
refs
repo1.git
HEADconfigdescription
hooks
applypatch-msg.samplecommit-msg.samplepost-receive
post-receive.d
post-update.samplepre-applypatch.samplepre-commit.samplepre-push.samplepre-rebase.samplepre-receivepre-receive.d
prepare-commit-msg.sampleupdateupdate.d
update.sampleinfo
objects
2a
4b
65
info
refs
repo1.wiki.git
HEADconfigdescription
hooks
applypatch-msg.samplecommit-msg.samplepost-update.samplepre-applypatch.samplepre-commit.samplepre-push.samplepre-rebase.sampleprepare-commit-msg.sampleupdate.sample
info
objects
0c
2c
32
71
72
7c
c1
e5
ea
f5
refs
heads
repo15.git
HEADconfigdescription
hooks
applypatch-msg.samplecommit-msg.samplepost-receive
post-receive.d
post-update.samplepre-applypatch.samplepre-commit.samplepre-push.samplepre-rebase.samplepre-receivepre-receive.d
prepare-commit-msg.sampleupdateupdate.d
update.sampleinfo
repo16.git
HEADconfigdescription
hooks
applypatch-msg.samplecommit-msg.samplepost-update.samplepre-applypatch.samplepre-commit.samplepre-push.samplepre-rebase.samplepre-receive.sampleprepare-commit-msg.sampleupdate.sample
info
objects
0c
24
27
3b
45
50
69
a4
e9
f2
f9
refs
repo20.git
HEADconfigdescription
hooks
applypatch-msg.samplecommit-msg.samplefsmonitor-watchman.samplepost-receive
post-receive.d
post-update.samplepre-applypatch.samplepre-commit.samplepre-push.samplepre-rebase.samplepre-receivepre-receive.d
pre-receive.sampleprepare-commit-msg.sampleupdateupdate.d
update.sampleinfo
objects
02
05
1b
29
2c
41
80
83
8c
ba
c5
ce
db
info
refs
heads
utf8.git
HEADconfigdescription
hooks
applypatch-msg.samplecommit-msg.samplepost-receive
post-receive.d
post-update.samplepre-applypatch.samplepre-commit.samplepre-push.samplepre-rebase.samplepre-receivepre-receive.d
prepare-commit-msg.sampleupdateupdate.d
update.sampleinfo
objects
14
1d
28
3a
810dbf6b96afaa8c5f69a8b6ec1dabfca7368ba73c3499bff049a352b4e265575373e964b89ac6084110205f98174c4f1ec7e78cb21a15dfc2
56
6d
a9
eb
ee
f4
info
refs
user3
repo3.git
migration-test
gitea-v1.3.3.sqlite3.sql.gzgitea-v1.5.3.mssql.sql.gzgitea-v1.5.3.mysql.sql.gzgitea-v1.5.3.postgres.sql.gzgitea-v1.5.3.sqlite3.sql.gzgitea-v1.6.4.mssql.sql.gzgitea-v1.6.4.mysql.sql.gzgitea-v1.6.4.postgres.sql.gzgitea-v1.6.4.sqlite3.sql.gzgitea-v1.7.0.mssql.sql.gzgitea-v1.7.0.mysql.sql.gzgitea-v1.7.0.postgres.sql.gzgitea-v1.7.0.sqlite3.sql.gzmigration_test.go
mssql.ini.tmplmysql.inimysql.ini.tmplmysql8.ini.tmplnonascii_branches_test.gooauth_test.goorg_test.gopgsql.inipgsql.ini.tmplpull_compare_test.gopull_create_test.gopull_merge_test.gopull_review_test.gopull_status_test.gorelease_test.gorepo_activity_test.gorepo_branch_test.gorepo_commits_search_test.gorepo_commits_test.gorepo_fork_test.gorepo_migrate_test.gorepo_search_test.gorepo_test.gorepofiles_delete_test.gorepofiles_update_test.gosetting_test.gosignout_test.gosqlite.inissh_key_test.gotestlogger.gotimetracking_test.gouser_test.goversion_test.goxss_test.gomodels
access.goaccess_test.goaction.goaction_list.goaction_test.goadmin.goadmin_test.goattachment.goattachment_test.gobranches.gobranches_test.gocommit_status.gocommit_status_test.goconsistency.goconvert.goerror.go
fixtures
access.ymlaccess_token.ymlaction.ymlcollaboration.ymlcomment.ymldeleted_branch.ymldeploy_key.ymlgpg_key.ymlgpg_key_import.ymlhook_task.ymlissue.ymlissue_assignees.ymlissue_user.ymlissue_watch.ymllogin_source.ymlmilestone.ymlnotification.ymloauth2_application.ymloauth2_authorization_code.ymloauth2_grant.ymlorg_user.ymlpublic_key.ymlpull_request.ymlreaction.ymlrepo_indexer_status.ymlrepo_topic.ymlrepo_unit.ymlrepository.ymlreview.ymlstopwatch.ymlteam.ymlteam_repo.ymlteam_unit.ymlteam_user.ymltopic.ymltracked_time.ymlu2f_registration.ymluser.ymlwatch.yml
git_diff.gogit_diff_test.gogpg_key.gogpg_key_test.gograph.gograph_test.gohelper.gohelper_directory.gohelper_environment.goissue.goissue_assignees.goissue_assignees_test.goissue_comment.goissue_comment_list.goissue_comment_test.goissue_dependency.goissue_dependency_test.goissue_indexer.goissue_label.goissue_label_test.goissue_list.goissue_list_test.goissue_lock.goissue_mail.goissue_milestone.goissue_milestone_test.goissue_reaction.goissue_reaction_test.goissue_stopwatch.goissue_stopwatch_test.goissue_test.goissue_tracked_time.goissue_tracked_time_test.goissue_user.goissue_user_test.goissue_watch.goissue_watch_test.golfs.golfs_lock.golog.gologin_source.gomail.gomain_test.gomigrate.gomigrations
migrations.gov15.gov16.gov19.gov21.gov22.gov26.gov27.gov28.gov31.gov33.gov37.gov38.gov39.gov40.gov41.gov45.gov46.gov47.gov48.gov49.gov50.gov51.gov52.gov53.gov54.gov55.gov56.gov57.gov58.gov59.gov60.gov61.gov62.gov63.gov64.gov65.gov66.gov67.gov68.gov69.gov70.gov71.gov72.gov73.gov74.gov75.gov76.gov77.gov78.gov79.gov80.gov81.gov82.gov83.gov84.gov85.gov86.gov87.gov88.go
models.gomodels_sqlite.gomodels_test.gomodels_tidb.gonotification.gonotification_test.gooauth2.gooauth2_application.gooauth2_application_test.goorg.goorg_team.goorg_team_test.goorg_test.gopull.gopull_test.gorelease.gorelease_test.gorepo.gorepo_activity.gorepo_branch.gorepo_collaboration.gorepo_editor.gorepo_indexer.gorepo_issue.gorepo_list.gorepo_list_test.gorepo_mirror.gorepo_permission.gorepo_permission_test.gorepo_redirect.gorepo_tag.gorepo_test.gorepo_unit.gorepo_watch.gorepo_watch_test.goreview.goreview_test.gossh_key.gossh_key_test.gostar.gostar_test.gostatus.gostatus_test.gotest_fixtures.gotoken.gotoken_test.gotopic.gotopic_test.gotwofactor.gou2f.gou2f_test.gounit.gounit_tests.goupdate.goupdate_test.goupload.gouser.gouser_heatmap.gouser_heatmap_test.gouser_mail.gouser_mail_test.gouser_openid.gouser_openid_test.gouser_test.gowebhook.gowebhook_dingtalk.gowebhook_discord.gowebhook_msteams.gowebhook_slack.gowebhook_telegram.gowebhook_test.gowiki.gowiki_test.gomodules
auth
admin.goauth.goauth_form.go
ldap
oauth2
openid
org.gorepo_branch_form.gorepo_form.gorepo_form_test.gouser_form.gouser_form_auth_openid.gouser_form_test.goavatar
base
cache
context
cron
generate
git
README.mdblame.goblame_test.goblob.goblob_test.gocache.gocommand.gocommand_test.gocommit.gocommit_info.gocommit_info_test.gocommit_test.goerror.gogit.gogit_test.gohook.gonotes.gonotes_test.goparse.goparse_test.goref.gorepo.gorepo_blame.gorepo_blob.gorepo_blob_test.gorepo_branch.gorepo_branch_test.gorepo_commit.gorepo_commit_test.gorepo_commitgraph.gorepo_compare.gorepo_compare_test.gorepo_index.gorepo_object.gorepo_ref.gorepo_ref_test.gorepo_stats.gorepo_stats_test.gorepo_tag.gorepo_tag_test.gorepo_test.gorepo_tree.gosha1.gosignature.gosubmodule.gosubmodule_test.gotag.gotree.gotree_blob.gotree_entry.gotree_entry_test.goutils.go
tests
repos
repo1_bare
HEADconfigdescription
hooks
applypatch-msg.samplecommit-msg.samplepost-update.samplepre-applypatch.samplepre-commit.samplepre-push.samplepre-rebase.samplepre-receive.sampleprepare-commit-msg.sampleupdate.sample
info
logs
objects
0b
11
15
18
21
28
2e
30
34
37
38
3a
50
59
5c
62
64
6c
6f
7e
80
82
83
8d
95
98
9c
a4
b1
b7
c8
ca
d0
e2
f1
fe
refs
repo2_empty
gzip
highlight
httplib
indexer
indexer.go
issues
bleve.gobleve_test.godb.goindexer.goindexer_test.goqueue.goqueue_channel.goqueue_disk.goqueue_redis.go
repo.golfs
log
colors.gocolors_router.goconn.goconn_test.goconsole.goconsole_test.goconsole_windows.goerrors.goevent.gofile.gofile_test.goflags.golevel.golevel_test.golog.golog_test.gologger.goprovider.gosmtp.gosmtp_test.gostack.gowriter.gowriter_test.goxorm.go
mailer
markdown
markup
metrics
migrations
base
comment.godownloader.goissue.golabel.gomilestone.gooptions.gopullrequest.goreaction.gorelease.gorepo.gouploader.go
error.gogit.gogitea.gogitea_test.gogithub.gogithub_test.gomain_test.gomigrate.gonotification
options
pprof
private
process
public
pull
recaptcha
repofiles
blob.goblob_test.gocommit.gocommit_status.gocontent.gocontent_test.godelete.godiff.godiff_test.gofile.gofile_test.gorepofiles.gorepofiles_test.gotemp_repo.gotree.gotree_test.goupdate.goupload.goverification.go
search
secret
session
setting
cache.gocors.gocron.godefaults.gogit.goindexer.golog.gomailer.gomarkup.gorepository.goservice.gosession.gosetting.gowebhook.go
ssh
structs
admin_user.goattachment.godoc.gofork.gogit_blob.gogit_hook.gohook.goissue.goissue_comment.goissue_label.goissue_milestone.goissue_tracked_time.golfs_lock.gomiscellaneous.goorg.goorg_member.goorg_team.goorg_type.gopull.gorelease.gorepo.gorepo_branch.gorepo_collaborator.gorepo_commit.gorepo_file.gorepo_key.gorepo_refs.gorepo_tag.gorepo_tree.gorepo_watch.gostatus.gouser.gouser_app.gouser_email.gouser_gpgkey.gouser_key.goutils.go
templates
test
user
util
validation
options
gitignore
ActionscriptAndroidArchivesAutotoolsBackupCClojureCodeKitComposerCraftCMSDartDelphiDiffDrupalEagleEclipseElixirExtJsFortranGWTGoGodotHaskellImagesJEnvJavaJekyllJetBrainsJoomlaKiCADKiCadKotlinLabVIEWLaravelLeiningenMagentoMatlabMavenMicrosoftOfficeNanocNetBeansNodeOCamlObjective-CPSoCCreatorPatchPerlPerl6PrestashopProcessingPythonQtRROSRailsRustSassSmalltalkSublimeTextSugarCRMSwiftSymfonySynopsysVCSTeXTerraformTypo3UmbracoUnityUnrealEngineVagrantVimVisualStudioWindowsWordPressXcodeZendFrameworkmacOS
label
license
0BSD389-exceptionAALADSLAFL-1.1AFL-1.2AFL-2.0AFL-2.1AFL-3.0AGPL-1.0AGPL-3.0AGPL-3.0-onlyAGPL-3.0-or-laterAMDPLPAAMLAMPASANTLR-PDAPAFMLAPL-1.0APSL-1.0APSL-1.1APSL-1.2APSL-2.0AbstylesAdobe-2006Adobe-GlyphAfmparseAladdinApache-1.0Apache-1.1Apache-2.0Artistic-1.0Artistic-1.0-PerlArtistic-1.0-cl8Artistic-2.0Autoconf-exception-2.0Autoconf-exception-3.0BSD-1-ClauseBSD-2-ClauseBSD-2-Clause-FreeBSDBSD-2-Clause-NetBSDBSD-2-Clause-PatentBSD-3-ClauseBSD-3-Clause-AttributionBSD-3-Clause-ClearBSD-3-Clause-LBNLBSD-3-Clause-No-Nuclear-LicenseBSD-3-Clause-No-Nuclear-License-2014BSD-3-Clause-No-Nuclear-WarrantyBSD-4-ClauseBSD-4-Clause-UCBSD-ProtectionBSD-Source-CodeBSL-1.0BahyphBarrBeerwareBison-exception-2.2BitTorrent-1.0BitTorrent-1.1Bootloader-exceptionBorceuxCATOSL-1.1CC-BY-1.0CC-BY-2.0CC-BY-3.0CC-BY-4.0CC-BY-NC-1.0CC-BY-NC-2.0CC-BY-NC-3.0CC-BY-NC-4.0CC-BY-NC-ND-1.0CC-BY-NC-ND-2.0CC-BY-NC-ND-3.0CC-BY-NC-ND-4.0CC-BY-NC-SA-1.0CC-BY-NC-SA-2.0CC-BY-NC-SA-3.0CC-BY-NC-SA-4.0CC-BY-ND-1.0CC-BY-ND-2.0CC-BY-ND-3.0CC-BY-ND-4.0CC-BY-SA-1.0CC-BY-SA-2.0CC-BY-SA-3.0CC-BY-SA-4.0CC0-1.0CDDL-1.0CDDL-1.1CDLA-Permissive-1.0CDLA-Sharing-1.0CECILL-1.0CECILL-1.1CECILL-2.0CECILL-2.1CECILL-BCECILL-CCLISP-exception-2.0CNRI-JythonCNRI-PythonCNRI-Python-GPL-CompatibleCPAL-1.0CPL-1.0CPOL-1.02CUA-OPL-1.0CalderaClArtisticClasspath-exception-2.0Condor-1.1CrosswordCrystalStackerCubeD-FSL-1.0DOCDSDPDigiRule-FOSS-exceptionDotseqnECL-1.0ECL-2.0EFL-1.0EFL-2.0EPL-1.0EPL-2.0EUDatagridEUPL-1.0EUPL-1.1EUPL-1.2EntessaErlPL-1.1EurosymFLTK-exceptionFSFAPFSFULFSFULLRFTLFairFawkes-Runtime-exceptionFont-exception-2.0Frameworx-1.0FreeImageGCC-exception-2.0GCC-exception-3.1GFDL-1.1GFDL-1.1-onlyGFDL-1.1-or-laterGFDL-1.2GFDL-1.2-onlyGFDL-1.2-or-laterGFDL-1.3GFDL-1.3-onlyGFDL-1.3-or-laterGL2PSGPL-1.0GPL-1.0-onlyGPL-1.0-or-laterGPL-2.0GPL-2.0-onlyGPL-2.0-or-laterGPL-3.0GPL-3.0-onlyGPL-3.0-or-laterGiftwareGlideGlulxeHPNDHaskellReportIBM-pibsICUIJGIPAIPL-1.0ISCImageMagickImlib2Info-ZIPIntelIntel-ACPIInterbase-1.0JSONJasPer-2.0LAL-1.2LAL-1.3LGPL-2.0LGPL-2.0-onlyLGPL-2.0-or-laterLGPL-2.1LGPL-2.1-onlyLGPL-2.1-or-laterLGPL-3.0LGPL-3.0-onlyLGPL-3.0-or-laterLGPLLRLPL-1.0LPL-1.02LPPL-1.0LPPL-1.1LPPL-1.2LPPL-1.3aLPPL-1.3cLZMA-exceptionLatex2eLeptonicaLiLiQ-P-1.1LiLiQ-R-1.1LiLiQ-Rplus-1.1LibpngLibtool-exceptionLinux-syscall-noteMITMIT-CMUMIT-advertisingMIT-ennaMIT-fehMITNFAMPL-1.0MPL-1.1MPL-2.0MPL-2.0-no-copyleft-exceptionMS-PLMS-RLMTLLMakeIndexMirOSMotosotoMulticsMupNASA-1.3NBPL-1.0NCSANGPLNLOD-1.0NLPLNOSLNPL-1.0NPL-1.1NPOSL-3.0NRLNTPNaumenNet-SNMPNetCDFNewsletrNokiaNokia-Qt-exception-1.1NowebNunitOCCT-PLOCCT-exception-1.0OCLC-2.0ODbL-1.0OFL-1.0OFL-1.1OGTSLOLDAP-1.1OLDAP-1.2OLDAP-1.3OLDAP-1.4OLDAP-2.0OLDAP-2.0.1OLDAP-2.1OLDAP-2.2OLDAP-2.2.1OLDAP-2.2.2OLDAP-2.3OLDAP-2.4OLDAP-2.7OMLOPL-1.0OSET-PL-2.1OSL-1.0OSL-1.1OSL-2.0OSL-2.1OSL-3.0OpenSSLPDDL-1.0PHP-3.0PHP-3.01PlexusPostgreSQLPython-2.0QPL-1.0QhullQwt-exception-1.0RHeCos-1.1RPL-1.1RPSL-1.0RSA-MDRSCPLRdiscRubySAX-PDSCEASGI-B-1.0SGI-B-1.1SGI-B-2.0SISSLSISSL-1.2SMLNJSMPPLSNIASPL-1.0SWLSaxpathSendmailSimPL-2.0SleepycatSpencer-86Spencer-94Spencer-99SugarCRM-1.1.3TCLTCP-wrappersTMateTORQUE-1.1TOSLUPL-1.0Unicode-DFS-2015Unicode-DFS-2016Unicode-TOUUnlicenseUpdating the SPDX LicensesVOSTROMVSL-1.0VimW3CW3C-19980720W3C-20150513WTFPLWatcom-1.0WsuipaWxWindows-exception-3.1X11XFree86-1.1XSkatXeroxXnetYPL-1.0YPL-1.1ZPL-1.1ZPL-2.0ZPL-2.1ZedZend-2.0Zimbra-1.3Zimbra-1.4ZlibcurldiffmarkdvipdfmeCos-exception-2.0eGenixfreertos-exception-2.0gSOAP-1.3bgnu-javamail-exceptiongnuploti2p-gpl-java-exceptioniMatixlibtiffmif-exceptionmpich2openvpn-openssl-exceptionpsfragpsutilsu-boot-exception-2.0xinetdxppzlib-acknowledgement
locale
TRANSLATORSlocale_bg-BG.inilocale_cs-CZ.inilocale_de-DE.inilocale_en-US.inilocale_es-ES.inilocale_fa-IR.inilocale_fi-FI.inilocale_fr-FR.inilocale_hu-HU.inilocale_id-ID.inilocale_it-IT.inilocale_ja-JP.inilocale_ko-KR.inilocale_lt-LT.inilocale_lv-LV.inilocale_ml-IN.inilocale_nb-NO.inilocale_nl-NL.inilocale_nn-NO.inilocale_no-NO.inilocale_pl-PL.inilocale_pt-BR.inilocale_ru-RU.inilocale_ru-UA.inilocale_sr-SP.inilocale_sv-SE.inilocale_tr-TR.inilocale_uk-UA.inilocale_vi-VN.inilocale_zh-CN.inilocale_zh-HK.inilocale_zh-TW.ini
public
css
img
auth
avatar_default.pngdingtalk.icodiscord.pngfavicon.icofavicon.pnggitea-192.pnggitea-512.pnggitea-lg.pnggitea-safari.svggitea-sm.pngmsteams.pngopenid-16x16.pngrepo_default.pngslack.pngtelegram.pngjs
less
_admin.less_base.less_dashboard.less_editor.less_emojify.less_explore.less_form.less_home.less_install.less_markdown.less_organization.less_repository.less_review.less_tribute.less_user.lessindex.less
swagger.v1.jsonthemes
vendor
VERSIONSlibrejs.html
assets
lato-fonts
lato-bold.eotlato-bold.wofflato-bold.woff2lato-bolditalic.eotlato-bolditalic.wofflato-bolditalic.woff2lato-italic.eotlato-italic.wofflato-italic.woff2lato-regular.eotlato-regular.wofflato-regular.woff2lato-v14-latin-700.eotlato-v14-latin-700.svglato-v14-latin-700.ttflato-v14-latin-700.wofflato-v14-latin-700.woff2lato-v14-latin-700italic.eotlato-v14-latin-700italic.svglato-v14-latin-700italic.ttflato-v14-latin-700italic.wofflato-v14-latin-700italic.woff2lato-v14-latin-italic.eotlato-v14-latin-italic.svglato-v14-latin-italic.ttflato-v14-latin-italic.wofflato-v14-latin-italic.woff2lato-v14-latin-regular.eotlato-v14-latin-regular.svglato-v14-latin-regular.ttflato-v14-latin-regular.wofflato-v14-latin-regular.woff2
swagger-ui
plugins
autolink
gitgraph
highlight
jquery-migrate
jquery
moment
promise-polyfill
semantic
tribute
u2f
vue-calendar-heatmap
vue
routers
admin
api
v1
admin
api.goconvert
misc
org
repo
blob.gobranch.gocollaborators.gocommits.gofile.gofork.gogit_hook.gogit_ref.gohook.gohook_test.goissue.goissue_comment.goissue_label.goissue_tracked_time.gokey.golabel.gomain_test.gomilestone.gopull.gorelease.gorelease_attachment.gorepo.gorepo_test.gostar.gostatus.gosubscriber.gotag.gotree.go
swagger
user
utils
org
private
repo
activity.goattachment.goblame.gobranch.gocommit.gocompare.godownload.goeditor.goeditor_test.gohttp.goissue.goissue_dependency.goissue_label.goissue_label_test.goissue_lock.goissue_stopwatch.goissue_timetrack.goissue_watch.gomain_test.gomiddlewares.gomilestone.gopull.gopull_review.gorelease.gorelease_test.gorepo.gosearch.gosetting.gosetting_protected_branch.gosettings_test.gotopic.goview.gowebhook.gowiki.gowiki_test.go
routes
swagger_json.gouser
auth.goauth_openid.gohome.gohome_test.gomain_test.gonotification.gooauth.goprofile.gosetting.go
setting
account.goaccount_test.goapplications.gokeys.gomain_test.gooauth2.goprofile.gosecurity.gosecurity_openid.gosecurity_twofa.gosecurity_u2f.go
setting_openid.goutils
scripts
snap
templates
admin
base
custom
body_inner_post.tmplbody_inner_pre.tmplbody_outer_post.tmplbody_outer_pre.tmplextra_links.tmplextra_tabs.tmplfooter.tmplheader.tmpl
explore
home.tmplinstall.tmplmail
org
pwa
repo
activity.tmplbare.tmplblame.tmpl
branch
branch_dropdown.tmplcommit_page.tmplcommit_status.tmplcommits.tmplcommits_table.tmplcreate.tmpldiff
box.tmplcomment_form.tmplcomment_form_datahandler.tmplcomments.tmplcompare.tmplnew_comment.tmplnew_review.tmplpage.tmplsection_unified.tmplwhitespace_dropdown.tmpl
editor
empty.tmplgraph.tmplheader.tmplhome.tmplissue
branch_selector_field.tmplcomment_tab.tmpllabels.tmpllist.tmplmilestone_issues.tmplmilestone_new.tmplmilestones.tmplnew_form.tmplsearch.tmplview.tmplview_content.tmpl
migrate.tmplview_content
view_title.tmplpulls
release
search.tmplsettings
branches.tmplcollaboration.tmpldeploy_keys.tmplhook_delete_modal.tmplhook_gitea.tmplhook_gogs.tmplhook_history.tmplhook_list.tmplhook_new.tmplhook_settings.tmplhook_slack.tmplhooks.tmplnavbar.tmploptions.tmplprotected_branch.tmpl
sub_menu.tmpluser_cards.tmplview_file.tmplview_list.tmplwebhook
wiki
status
swagger.tmplswagger
user
auth
activate.tmplchange_passwd.tmplchange_passwd_inner.tmplfinalize_openid.tmplforgot_passwd.tmplgrant.tmplgrant_error.tmpllink_account.tmplreset_passwd.tmplsignin_inner.tmplsignin_navbar.tmplsignup_inner.tmplsignup_openid_register.tmplu2f.tmplu2f_error.tmpl
dashboard
meta
notification
profile.tmplsettings
account.tmplaccount_link.tmplapplications.tmplapplications_oauth2.tmplapplications_oauth2_edit.tmplavatar.tmpldelete.tmplemail.tmplgrants_oauth2.tmplkeys_gpg.tmplkeys_ssh.tmplnavbar.tmplopenid.tmplorganization.tmplpassword.tmplprofile.tmplrepos.tmplsecurity.tmplsecurity_accountlinks.tmplsecurity_openid.tmplsecurity_twofa.tmplsecurity_u2f.tmpltwofa.tmpltwofa_enroll.tmpl
vendor
code.gitea.io
git
CONTRIBUTING.mdDCOLICENSEMAINTAINERSMakefileREADME.mdblob.gocommand.gocommit.gocommit_archive.godoc.goerror.gogit.gohook.gorepo.gorepo_blame.gorepo_branch.gorepo_commit.gorepo_hook.gorepo_object.gorepo_pull.gorepo_tag.gorepo_tree.gosha1.gosignature.gosubmodule.gotag.gotree.gotree_blob.gotree_entry.goutils.go
sdk
LICENSE
gitea
admin_org.goadmin_repo.goadmin_user.godoc.gofork.gogitea.gohook.goissue.goissue_comment.goissue_label.goissue_milestone.goissue_tracked_time.gomiscellaneous.goorg.goorg_member.goorg_team.gopull.gorelease.gorepo.gorepo_branch.gorepo_collaborator.gorepo_file.gorepo_key.gorepo_watch.gostatus.gouser.gouser_app.gouser_email.gouser_follow.gouser_gpgkey.gouser_key.goutils.go
github.com
BurntSushi
toml
PuerkitoBio
RoaringBitmap
roaring
.gitignore.gitmodules.travis.ymlAUTHORSCONTRIBUTORSLICENSELICENSE-2.0.txtMakefileREADME.mdarraycontainer.goarraycontainer_gen.gobitmapcontainer.gobitmapcontainer_gen.goctz.goctz_compat.gofastaggregation.gomanyiterator.goparallel.gopopcnt.gopopcnt_amd64.spopcnt_asm.gopopcnt_compat.gopopcnt_generic.gopopcnt_slices.gopriorityqueue.gorle.gorle16.gorle16_gen.gorle_gen.gorlecommon.gorlei.goroaring.goroaringarray.goroaringarray_gen.goserialization.goserialization_generic.goserialization_littleendian.goserializationfuzz.gosetutil.goshortiterator.gosmat.goutil.go
Unknwon
cae
com
i18n
paginater
andybalholm
cascadia
beorn7
perks
blevesearch
bleve
.gitignore.travis.ymlREADME.md
analysis
config.godocument
document.gofield.gofield_boolean.gofield_composite.gofield_datetime.gofield_geopoint.gofield_numeric.gofield_text.goindexing_options.go
geo
index.goindex
analysis.goindex.go
index_alias_impl.goindex_impl.goindex_meta.gomapping.goscorch
README.mdevent.gointroducer.gomerge.go
mergeplan
optimize.gopersister.goscorch.gosegment
snapshot_index.gosnapshot_index_dict.gosnapshot_index_doc.gosnapshot_index_tfr.gosnapshot_rollback.gosnapshot_segment.gostats.gostore
upsidedown
mapping
numeric
query.gosearch.gosearch
collector.go
collector
explanation.gofacet
facets_builder.gohighlight
levenshtein.gopool.goquery
bool_field.goboolean.goconjunction.godate_range.godisjunction.godocid.gofuzzy.gogeo_boundingbox.gogeo_distance.gomatch.gomatch_all.gomatch_none.gomatch_phrase.gomulti_phrase.gonumeric_range.gophrase.goprefix.goquery.goquery_string.goquery_string.yquery_string.y.goquery_string_lex.goquery_string_parser.goregexp.goterm.goterm_range.gowildcard.go
scorer
search.gosearcher
search_boolean.gosearch_conjunction.gosearch_disjunction.gosearch_disjunction_heap.gosearch_disjunction_slice.gosearch_docid.gosearch_filter.gosearch_fuzzy.gosearch_geoboundingbox.gosearch_geopointdistance.gosearch_match_all.gosearch_match_none.gosearch_multi_term.gosearch_numeric_range.gosearch_phrase.gosearch_regexp.gosearch_term.gosearch_term_prefix.gosearch_term_range.go
sort.goutil.gosize
go-porterstemmer
segment
boltdb
bolt
LICENSEMakefileREADME.mdappveyor.ymlbolt_386.gobolt_amd64.gobolt_arm.gobolt_arm64.gobolt_linux.gobolt_mips.gobolt_mips64.gobolt_mips64le.gobolt_mipsle.gobolt_openbsd.gobolt_ppc.gobolt_ppc64.gobolt_ppc64le.gobolt_s390x.gobolt_unix.gobolt_unix_solaris.gobolt_windows.goboltsync_unix.gobucket.gocursor.godb.godoc.goerrors.gofreelist.gonode.gopage.gotx.go
chaseadamsio
coreos
etcd
go-etcd
couchbase
gomemcached
goutils
vellum
couchbaselabs
go-couchbase
davecgh
denisenkom
go-mssqldb
README.mdappveyor.ymlbuf.gobulkcopy.gobulkcopy_sql.gocharset.gocollation.gocp1250.gocp1251.gocp1252.gocp1253.gocp1254.gocp1255.gocp1256.gocp1257.gocp1258.gocp437.gocp850.gocp874.gocp932.gocp936.gocp949.gocp950.godecimal.godoc.go
internal
log.gomssql.gomssql_go1.3.gomssql_go1.3pre.gomssql_go18.gomssql_go19.gomssql_go19pre.gonet.gontlm.goparser.gosspi_windows.gotds.gotoken.gotoken_string.gotran.gotypes.gouniqueidentifier.godgrijalva
edsrzf
elazarl
go-bindata-assetfs
emirpasic
gods
etcd-io
bbolt
ethantkoenig
rupture
facebookgo
glycerine
go-unsnap-stream
go-macaron
bindata
binding
cache
captcha
cors
csrf
gzip
i18n
inject
session
.gitignore.travis.ymlREADME.md
couchbase
file.goflash.gomemcache
mysql
nodb
postgres
redis
session.goutils.gotoolbox
go-redis
redis
go-sql-driver
mysql
go-xorm
builder
LICENSEREADME.mdbuilder.gobuilder_delete.gobuilder_insert.gobuilder_select.gobuilder_update.gocircle.ymlcond.gocond_and.gocond_between.gocond_compare.gocond_eq.gocond_expr.gocond_in.gocond_like.gocond_neq.gocond_not.gocond_notin.gocond_null.gocond_or.godoc.goerror.go
core
LICENSEREADME.mdbenchmark.shcache.gocircle.ymlcolumn.goconverstion.godb.godialect.godriver.goerror.gofilter.goilogger.goindex.gomapper.gopk.gorows.goscan.gotable.gotype.go
tidb
xorm
.drone.yml.gitignoreCONTRIBUTING.mdREADME.mdREADME_CN.mdcache_lru.gocache_memory_store.gocircle.ymlcontext_cache.goconvert.godialect_mssql.godialect_mysql.godialect_oracle.godialect_postgres.godialect_sqlite3.godoc.goengine.goengine_cond.goengine_context.goengine_group.goengine_group_policy.goengine_maxlife.goengine_table.goerror.gogen_reserved.shgo.modgo.sumhelpers.gointerface.gojson.gologger.goprocessors.gorows.gosession.gosession_cols.gosession_cond.gosession_context.gosession_convert.gosession_delete.gosession_exist.gosession_find.gosession_get.gosession_insert.gosession_iterate.gosession_query.gosession_raw.gosession_schema.gosession_stats.gosession_tx.gosession_update.gostatement.gosyslogger.gotag.gotest_mssql.shtest_mssql_cache.shtest_mymysql.shtest_mymysql_cache.shtest_mysql.shtest_mysql_cache.shtest_postgres.shtest_postgres_cache.shtest_sqlite.shtest_sqlite_cache.shtest_tidb.shtransaction.gotypes.goxorm.go
gogits
golang
google
go-github
v24
AUTHORSLICENSE
github
activity.goactivity_events.goactivity_notifications.goactivity_star.goactivity_watching.goadmin.goadmin_stats.goapps.goapps_installation.goapps_marketplace.goauthorizations.gochecks.godoc.goevent.goevent_types.gogen-accessors.gogists.gogists_comments.gogit.gogit_blobs.gogit_commits.gogit_refs.gogit_tags.gogit_trees.gogithub-accessors.gogithub.gogitignore.gointeractions.gointeractions_orgs.gointeractions_repos.goissues.goissues_assignees.goissues_comments.goissues_events.goissues_labels.goissues_milestones.goissues_timeline.golicenses.gomessages.gomigrations.gomigrations_source_import.gomigrations_user.gomisc.goorgs.goorgs_hooks.goorgs_members.goorgs_outside_collaborators.goorgs_projects.goorgs_users_blocking.goprojects.gopulls.gopulls_comments.gopulls_reviewers.gopulls_reviews.goreactions.gorepos.gorepos_collaborators.gorepos_comments.gorepos_commits.gorepos_community_health.gorepos_contents.gorepos_deployments.gorepos_forks.gorepos_hooks.gorepos_invitations.gorepos_keys.gorepos_merging.gorepos_pages.gorepos_prereceive_hooks.gorepos_projects.gorepos_releases.gorepos_stats.gorepos_statuses.gorepos_traffic.gosearch.gostrings.goteams.goteams_discussion_comments.goteams_discussions.goteams_members.gotimestamp.gousers.gousers_administration.gousers_blocking.gousers_emails.gousers_followers.gousers_gpg_keys.gousers_keys.gowith_appengine.gowithout_appengine.go
go-querystring
gorilla
context
mux
securecookie
sessions
issue9
identicon
jaytaylor
html2text
jbenet
juju
kballard
go-shellquote
kevinburke
ssh_config
keybase
go-crypto
klauspost
lafriks
lib
pq
lunny
dingtalk_webhook
levelqueue
log
nodb
markbates
goth
.gitignore.travis.ymlREADME.mdgo.modgo.sum
gothic
provider.goproviders
bitbucket
discord
dropbox
facebook
gitlab
gplus
openidConnect
twitter
mattn
go-isatty
.travis.ymlLICENSEREADME.mddoc.gogo.modgo.sumisatty_android.goisatty_bsd.goisatty_linux.goisatty_others.goisatty_solaris.goisatty_windows.go
go-sqlite3
.gitignore.travis.ymlREADME.mdcallback.gosqlite3-binding.csqlite3-binding.hsqlite3.gosqlite3_fts5.gosqlite3_func_crypt.gosqlite3_go18.gosqlite3_icu.gosqlite3_json1.gosqlite3_libsqlite3.gosqlite3_load_extension.gosqlite3_load_extension_omit.gosqlite3_omit_load_extension.gosqlite3_opt_allow_uri_authority.gosqlite3_opt_app_armor.gosqlite3_opt_foreign_keys.gosqlite3_opt_fts5.gosqlite3_opt_icu.gosqlite3_opt_introspect.gosqlite3_opt_json1.gosqlite3_opt_secure_delete.gosqlite3_opt_secure_delete_fast.gosqlite3_opt_stat4.gosqlite3_opt_unlock_notify.csqlite3_opt_unlock_notify.gosqlite3_opt_userauth.gosqlite3_opt_userauth_omit.gosqlite3_opt_vacuum_full.gosqlite3_opt_vacuum_incr.gosqlite3_opt_vtable.gosqlite3_other.gosqlite3_solaris.gosqlite3_trace.gosqlite3_usleep_windows.gosqlite3_vtable.gosqlite3_windows.gosqlite3ext.hstatic_mock.go
matttproud
mcuadros
microcosm-cc
bluemonday
mitchellh
go-homedir
mrjones
mschoch
msteinert
nfnt
resize
ngaut
deadline
go-zookeeper
log
pools
sync2
tso
zkhelper
oliamb
pelletier
go-buffruneio
petar
philhofer
pingcap
go-hbase
LICENSEREADME.mdaction.goadmin.gocall.goclient.goclient_ops.gocolumn.goconn.godel.goget.go
iohelper
proto
AccessControl.pb.goAdmin.pb.goAggregate.pb.goAuthentication.pb.goCell.pb.goClient.pb.goClusterId.pb.goClusterStatus.pb.goComparator.pb.goEncryption.pb.goErrorHandling.pb.goFS.pb.goFilter.pb.goHBase.pb.goHFile.pb.goLoadBalancer.pb.goMapReduce.pb.goMaster.pb.goMultiRowMutation.pb.goRPC.pb.goRegionServerStatus.pb.goRowProcessor.pb.goSecureBulkLoad.pb.goSnapshot.pb.goTracing.pb.goVisibilityLabels.pb.goWAL.pb.goZooKeeper.pb.go
put.goresult.goscan.goservice_call.gotypes.goutils.gogo-themis
LICENSEREADME.mdThemis.pb.goconsts.golock.gomutation_cache.go
oracle
themis_lock.gothemis_lock_manager.gothemis_primary_lock.gothemis_rpc.gothemis_scan.gothemis_secondary_lock.gothemis_txn.gotxn.gotxn_hook.goutil.gotidb
CONTRIBUTING.mdDockerfileMakefileREADME.md
ast
bootstrap.gocolumn
context
ddl
domain
driver.goevaluator
builtin.gobuiltin_control.gobuiltin_info.gobuiltin_math.gobuiltin_string.gobuiltin_time.goevaluator.goevaluator_binop.goevaluator_like.gohelper.go
executor
adapter.gobuilder.gocompiler.goexecutor.goexecutor_ddl.goexecutor_simple.goexecutor_write.goexplain.gogrant.goprepared.goshow.gosubquery.go
gitcookie.shinfoschema
inspectkv
kv
btree_buffer.gobuffer_store.gobufpool.goerror.goindex_iter.goiter.gokey.gokv.gomemdb_buffer.go
make.cmdmemkv
txn.gounion_iter.gounion_store.goutils.goversion.gometa
model
mysql
bit.gocharset.goconst.godecimal.goenum.goerrcode.goerrname.goerror.gofsp.gohex.goset.gostate.gotime.gotype.goutil.go
optimizer
parser
perfschema
privilege
session.gosessionctx
store
hbase
localstore
structure
table
terror
tidb.goutil
pkg
pmezard
go-difflib
difflib
pquerna
otp
prometheus
client_golang
LICENSENOTICE
prometheus
client_model
common
procfs
russross
blackfriday
satori
sergi
go-diff
shurcooL
httpfs
sanitized_anchor_name
vfsgen
siddontang
src-d
gcfg
steveyen
gtreap
stretchr
testify
syndtr
goleveldb
leveldb
batch.go
cache
comparer.gocomparer
db.godb_compaction.godb_snapshot.godb_state.godb_transaction.godb_util.godb_write.godoc.goerrors.goerrors
iterator
journal
key.gomemdb
opt
session.gosession_util.gostorage.gostorage
file_storage.gofile_storage_nacl.gofile_storage_plan9.gofile_storage_unix.gomem_storage.gostorage.go
table.gotable
util.goutil
version.gotinylib
msgp
tstranex
twinj
ugorji
go
LICENSE
codec
0doc.goREADME.mdbinc.gocbor.godecode.goencode.gofast-path.generated.gofast-path.go.tmplfast-path.not.gogen-dec-array.go.tmplgen-dec-map.go.tmplgen-helper.generated.gogen-helper.go.tmplgen.generated.gogen.gogen_15.gogen_16.gohelper.gohelper_internal.gohelper_not_unsafe.gohelper_unsafe.gojson.gomsgpack.gonoop.goprebuild.goprebuild.shrpc.gosimple.gotest-cbor-goldens.jsontest.pytests.shtime.go
urfave
cli
willf
bitset
xanzy
yohcop
openid-go
golang.org
x
crypto
AUTHORSCONTRIBUTORS
acme
bcrypt
blowfish
cast5
curve25519
const_amd64.hconst_amd64.scswap_amd64.scurve25519.godoc.gofreeze_amd64.sladderstep_amd64.smul_amd64.ssquare_amd64.s
ed25519
internal
chacha20
asm_arm64.sasm_ppc64le.schacha_arm64.gochacha_generic.gochacha_noasm.gochacha_ppc64le.gochacha_s390x.gochacha_s390x.sxor.go
subtle
md4
openpgp
armor
canonical_text.goelgamal
errors
keys.gopacket
compressed.goconfig.goencrypted_key.goliteral.goocfb.goone_pass_signature.goopaque.gopacket.goprivate_key.gopublic_key.gopublic_key_v3.goreader.gosignature.gosignature_v3.gosymmetric_key_encrypted.gosymmetrically_encrypted.gouserattribute.gouserid.go
read.gos2k
write.gopoly1305
mac_noasm.gopoly1305.gosum_amd64.gosum_amd64.ssum_arm.gosum_arm.ssum_generic.gosum_noasm.gosum_ppc64le.gosum_ppc64le.ssum_s390x.gosum_s390x.ssum_vmsl_s390x.s
ssh
net
oauth2
sync
sys
AUTHORSCONTRIBUTORS
cpu
asm_aix_ppc64.sbyteorder.gocpu.gocpu_aix_ppc64.gocpu_arm.gocpu_gc_s390x.gocpu_gc_x86.gocpu_gccgo.ccpu_gccgo.gocpu_gccgo_s390x.gocpu_linux.gocpu_linux_arm64.gocpu_linux_ppc64x.gocpu_linux_s390x.gocpu_mips64x.gocpu_mipsx.gocpu_other_arm64.gocpu_s390x.scpu_wasm.gocpu_x86.gocpu_x86.ssyscall_aix_ppc64_gc.go
unix
.gitignoreREADME.mdaffinity_linux.goaliases.goasm.sasm_aix_ppc64.sasm_dragonfly_amd64.sasm_freebsd_arm64.sasm_linux_386.sasm_linux_amd64.sasm_linux_arm.sasm_linux_arm64.sasm_linux_mips64x.sasm_linux_mipsx.sasm_linux_ppc64x.sasm_linux_riscv64.sasm_linux_s390x.sasm_netbsd_arm64.sasm_openbsd_arm.sasm_openbsd_arm64.sasm_solaris_amd64.scap_freebsd.goconstants.godev_aix_ppc.godev_aix_ppc64.godev_darwin.godev_dragonfly.godev_freebsd.godev_linux.godev_netbsd.godev_openbsd.godirent.goendian_big.goendian_little.goenv_unix.goenv_unset.goerrors_freebsd_386.goerrors_freebsd_amd64.goerrors_freebsd_arm.gofcntl.gofcntl_darwin.gofcntl_linux_32bit.goflock.goflock_linux_32bit.gogccgo.gogccgo_c.cgccgo_linux_amd64.goioctl.gomkall.shmkasm_darwin.gomkerrors.shmkpost.gomksyscall.gomksyscall.plmksyscall_aix_ppc.gomksyscall_aix_ppc64.gomksyscall_solaris.gomksyscall_solaris.plmksysctl_openbsd.gomksysctl_openbsd.plmksysnum.gomksysnum_darwin.plmksysnum_dragonfly.plmksysnum_freebsd.plmksysnum_linux.plmksysnum_netbsd.plmksysnum_openbsd.plpagesize_unix.gopledge_openbsd.gorace.gorace0.gosockcmsg_linux.gosockcmsg_unix.gostr.gosyscall.gosyscall_aix.gosyscall_aix_ppc.gosyscall_aix_ppc64.gosyscall_bsd.gosyscall_darwin.gosyscall_darwin_386.gosyscall_darwin_amd64.gosyscall_darwin_arm.gosyscall_darwin_arm64.gosyscall_darwin_libSystem.gosyscall_dragonfly.gosyscall_dragonfly_amd64.gosyscall_freebsd.gosyscall_freebsd_386.gosyscall_freebsd_amd64.gosyscall_freebsd_arm.gosyscall_freebsd_arm64.gosyscall_linux.gosyscall_linux_386.gosyscall_linux_amd64.gosyscall_linux_amd64_gc.gosyscall_linux_arm.gosyscall_linux_arm64.gosyscall_linux_gc.gosyscall_linux_gc_386.gosyscall_linux_gccgo_386.gosyscall_linux_gccgo_arm.gosyscall_linux_mips64x.gosyscall_linux_mipsx.gosyscall_linux_ppc64x.gosyscall_linux_riscv64.gosyscall_linux_s390x.gosyscall_linux_sparc64.gosyscall_netbsd.gosyscall_netbsd_386.gosyscall_netbsd_amd64.gosyscall_netbsd_arm.gosyscall_netbsd_arm64.gosyscall_no_getwd.gosyscall_openbsd.gosyscall_openbsd_386.gosyscall_openbsd_amd64.gosyscall_openbsd_arm.gosyscall_openbsd_arm64.gosyscall_solaris.gosyscall_solaris_amd64.gosyscall_unix.gosyscall_unix_gc.gosyscall_unix_gc_ppc64x.gotimestruct.gotypes_aix.gotypes_darwin.gotypes_dragonfly.gotypes_freebsd.gotypes_linux.gotypes_netbsd.gotypes_openbsd.gotypes_solaris.gounveil_openbsd.goxattr_bsd.gozerrors_aix_ppc.gozerrors_aix_ppc64.gozerrors_darwin_386.gozerrors_darwin_amd64.gozerrors_darwin_arm.gozerrors_darwin_arm64.gozerrors_dragonfly_amd64.gozerrors_freebsd_386.gozerrors_freebsd_amd64.gozerrors_freebsd_arm.gozerrors_freebsd_arm64.gozerrors_linux_386.gozerrors_linux_amd64.gozerrors_linux_arm.gozerrors_linux_arm64.gozerrors_linux_mips.gozerrors_linux_mips64.gozerrors_linux_mips64le.gozerrors_linux_mipsle.gozerrors_linux_ppc64.gozerrors_linux_ppc64le.gozerrors_linux_riscv64.gozerrors_linux_s390x.gozerrors_linux_sparc64.gozerrors_netbsd_386.gozerrors_netbsd_amd64.gozerrors_netbsd_arm.gozerrors_netbsd_arm64.gozerrors_openbsd_386.gozerrors_openbsd_amd64.gozerrors_openbsd_arm.gozerrors_openbsd_arm64.gozerrors_solaris_amd64.gozptrace386_linux.gozptracearm_linux.gozptracemips_linux.gozptracemipsle_linux.gozsyscall_aix_ppc.gozsyscall_aix_ppc64.gozsyscall_aix_ppc64_gc.gozsyscall_aix_ppc64_gccgo.gozsyscall_darwin_386.1_11.gozsyscall_darwin_386.gozsyscall_darwin_386.szsyscall_darwin_amd64.1_11.gozsyscall_darwin_amd64.gozsyscall_darwin_amd64.szsyscall_darwin_arm.1_11.gozsyscall_darwin_arm.gozsyscall_darwin_arm.szsyscall_darwin_arm64.1_11.gozsyscall_darwin_arm64.gozsyscall_darwin_arm64.szsyscall_dragonfly_amd64.gozsyscall_freebsd_386.gozsyscall_freebsd_amd64.gozsyscall_freebsd_arm.gozsyscall_freebsd_arm64.gozsyscall_linux_386.gozsyscall_linux_amd64.gozsyscall_linux_arm.gozsyscall_linux_arm64.gozsyscall_linux_mips.gozsyscall_linux_mips64.gozsyscall_linux_mips64le.gozsyscall_linux_mipsle.gozsyscall_linux_ppc64.gozsyscall_linux_ppc64le.gozsyscall_linux_riscv64.gozsyscall_linux_s390x.gozsyscall_linux_sparc64.gozsyscall_netbsd_386.gozsyscall_netbsd_amd64.gozsyscall_netbsd_arm.gozsyscall_netbsd_arm64.gozsyscall_openbsd_386.gozsyscall_openbsd_amd64.gozsyscall_openbsd_arm.gozsyscall_openbsd_arm64.gozsyscall_solaris_amd64.gozsysctl_openbsd.gozsysctl_openbsd_386.gozsysctl_openbsd_amd64.gozsysctl_openbsd_arm.gozsysctl_openbsd_arm64.gozsysnum_darwin_386.gozsysnum_darwin_amd64.gozsysnum_darwin_arm.gozsysnum_darwin_arm64.gozsysnum_dragonfly_amd64.gozsysnum_freebsd_386.gozsysnum_freebsd_amd64.gozsysnum_freebsd_arm.gozsysnum_freebsd_arm64.gozsysnum_linux_386.gozsysnum_linux_amd64.gozsysnum_linux_arm.gozsysnum_linux_arm64.gozsysnum_linux_mips.gozsysnum_linux_mips64.gozsysnum_linux_mips64le.gozsysnum_linux_mipsle.gozsysnum_linux_ppc64.gozsysnum_linux_ppc64le.gozsysnum_linux_riscv64.gozsysnum_linux_s390x.gozsysnum_linux_sparc64.gozsysnum_netbsd_386.gozsysnum_netbsd_amd64.gozsysnum_netbsd_arm.gozsysnum_netbsd_arm64.gozsysnum_openbsd_386.gozsysnum_openbsd_amd64.gozsysnum_openbsd_arm.gozsysnum_openbsd_arm64.gozsysnum_solaris_amd64.goztypes_aix_ppc.goztypes_aix_ppc64.goztypes_darwin_386.goztypes_darwin_amd64.goztypes_darwin_arm.goztypes_darwin_arm64.goztypes_dragonfly_amd64.goztypes_freebsd_386.goztypes_freebsd_amd64.goztypes_freebsd_arm.goztypes_freebsd_arm64.goztypes_linux_386.goztypes_linux_amd64.goztypes_linux_arm.goztypes_linux_arm64.goztypes_linux_mips.goztypes_linux_mips64.goztypes_linux_mips64le.goztypes_linux_mipsle.goztypes_linux_ppc64.goztypes_linux_ppc64le.goztypes_linux_riscv64.goztypes_linux_s390x.goztypes_linux_sparc64.goztypes_netbsd_386.goztypes_netbsd_amd64.goztypes_netbsd_arm.goztypes_netbsd_arm64.goztypes_openbsd_386.goztypes_openbsd_amd64.goztypes_openbsd_arm.goztypes_openbsd_arm64.goztypes_solaris_amd64.go
windows
aliases.goasm_windows_386.sasm_windows_amd64.sasm_windows_arm.sdll_windows.goenv_unset.goenv_windows.gomemory_windows.gomkerrors.bashmkknownfolderids.bashmksyscall.gorace.gorace0.gosecurity_windows.goservice.go
svc
syscall.gosyscall_windows.gotypes_windows.gotypes_windows_386.gotypes_windows_amd64.gotypes_windows_arm.gozerrors_windows.gozknownfolderids_windows.gozsyscall_windows.goztypes_windows.goztypes_windows_386.goztypes_windows_amd64.gotext
AUTHORSCONTRIBUTORS
encoding
charmap
encoding.gohtmlindex
internal
identifier
japanese
korean
simplifiedchinese
traditionalchinese
unicode
internal
language
language
Makefilecommon.gocoverage.godoc.gogen.gogen_common.gogen_index.goindex.golanguage.golookup.gomaketables.gomatch.goparse.gotables.gotags.go
secure
transform
unicode
google.golang.org
appengine
cloudsql
internal
api.goapi_classic.goapi_common.goapp_id.go
base
datastore
identity.goidentity_classic.goidentity_flex.goidentity_vm.gointernal.golog
main.gomain_common.gomain_vm.gometadata.gonet.goregen.shremote_api
transaction.gourlfetch
urlfetch
gopkg.in
asn1-ber.v1
bufio.v1
editorconfig
editorconfig-core-go.v1
gomail.v2
ini.v1
.gitignore.travis.ymlLICENSEMakefileREADME.mdREADME_ZH.mdfile.goini.gokey.goparser.gosection.gostruct.go
ldap.v2
LICENSEMakefileREADME.mdadd.gobind.goclient.gocompare.goconn.gocontrol.godebug.godel.godn.godoc.goerror.gofilter.goldap.gomodify.gopasswdmodify.gosearch.go
ldap.v3
.gitignore.travis.ymlCONTRIBUTING.mdLICENSEMakefileREADME.mdbind.goclient.gocompare.goconn.gocontrol.godebug.godel.godn.goerror.gofilter.goldap.gomoddn.gomodify.gosearch.go
macaron.v1
.gitignore.travis.ymlLICENSEREADME.mdcontext.gologger.gomacaron.goresponse_writer.gorouter.gotree.goutil_go17.goutil_go18.go
redis.v2
src-d
go-billy.v4
.gitignore.travis.ymlDCOLICENSEMAINTAINERSMakefileREADME.mdappveyor.ymlfs.gogo.modgo.sum
helper
osfs
util
go-git.v4
.gitignore.travis.ymlCODE_OF_CONDUCT.mdCOMPATIBILITY.mdCONTRIBUTING.mdDCOLICENSEMAINTAINERSMakefileREADME.mdappveyor.ymlblame.gocommon.gohash.gomemory.goobject.goreference.gorevision.goprune.goreferences.goremote.gorepository.gostatus.gosubmodule.goworktree.goworktree_bsd.goworktree_commit.goworktree_linux.goworktree_status.goworktree_unix_other.goworktree_windows.go
config
doc.gogo.modgo.suminternal
object_walker.gooptions.goplumbing
cache
error.gofilemode
format
commitgraph
config
diff
gitignore
idxfile
index
objfile
packfile
common.godelta_index.godelta_selector.godiff_delta.godoc.goencoder.goerror.gofsobject.goobject_pack.gopackfile.goparser.gopatch_delta.goscanner.go
pktline
object
blob.gochange.gochange_adaptor.gocommit.gocommit_walker.gocommit_walker_bfs.gocommit_walker_bfs_filtered.gocommit_walker_ctime.gocommit_walker_file.go
commitgraph
common.godifftree.gofile.gomerge_base.goobject.gopatch.gotag.gotree.gotreenoder.goprotocol
packp
revlist
storer
transport
storage
filesystem
memory
storer.goutils
binary
diff
ioutil
merkletrie
testfixtures.v2
.editorconfig.gitattributes.gitignore.sample.env.travis.ymlREADME.mdTaskfile.ymlappveyor.ymldeprecated.goerrors.gogenerate.gohelper.gojson.gomysql.gooracle.gopostgresql.gosqlite.gosqlserver.gotestfixtures.gotime.go
warnings.v0
yaml.v2
mvdan.cc
strk.kbt.io
projects
go
libravatar
xorm.io
@ -1,44 +0,0 @@
|
||||
repo: go-gitea/gitea
|
||||
groups:
|
||||
-
|
||||
name: BREAKING
|
||||
labels:
|
||||
- kind/breaking
|
||||
-
|
||||
name: FEATURE
|
||||
labels:
|
||||
- kind/feature
|
||||
-
|
||||
name: BUGFIXES
|
||||
labels:
|
||||
- kind/bug
|
||||
-
|
||||
name: ENHANCEMENT
|
||||
labels:
|
||||
- kind/enhancement
|
||||
- kind/refactor
|
||||
- kind/ui
|
||||
-
|
||||
name: SECURITY
|
||||
labels:
|
||||
- kind/security
|
||||
-
|
||||
name: TESTING
|
||||
labels:
|
||||
- kind/testing
|
||||
-
|
||||
name: TRANSLATION
|
||||
labels:
|
||||
- kind/translation
|
||||
-
|
||||
name: BUILD
|
||||
labels:
|
||||
- kind/build
|
||||
- kind/lint
|
||||
-
|
||||
name: DOCS
|
||||
labels:
|
||||
- kind/docs
|
||||
-
|
||||
name: MISC
|
||||
default: true
|
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
||||
*
|
||||
!gitea
|
||||
!docker
|
||||
!public
|
||||
!templates
|
858
.drone.yml
858
.drone.yml
File diff suppressed because it is too large
Load Diff
1
.drone.yml.sig
Normal file
1
.drone.yml.sig
Normal file
File diff suppressed because one or more lines are too long
@ -1,4 +1,5 @@
|
||||
# http://editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
@ -14,11 +15,11 @@ indent_size = 8
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
|
||||
[*.less]
|
||||
[*.{less}]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[*.{yml,json}]
|
||||
[*.{yml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
|
25
.eslintrc
25
.eslintrc
@ -1,25 +0,0 @@
|
||||
root: true
|
||||
|
||||
extends:
|
||||
- eslint:recommended
|
||||
|
||||
parserOptions:
|
||||
ecmaVersion: 2015
|
||||
|
||||
env:
|
||||
browser: true
|
||||
jquery: true
|
||||
es6: true
|
||||
|
||||
globals:
|
||||
Clipboard: false
|
||||
CodeMirror: false
|
||||
emojify: false
|
||||
SimpleMDE: false
|
||||
Vue: false
|
||||
Dropzone: false
|
||||
u2fApi: false
|
||||
hljs: false
|
||||
|
||||
rules:
|
||||
no-unused-vars: [error, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
|
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@ -1 +0,0 @@
|
||||
open_collective: gitea
|
6
.github/issue_template.md
vendored
6
.github/issue_template.md
vendored
@ -1,9 +1,7 @@
|
||||
<!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue -->
|
||||
|
||||
<!--
|
||||
1. Please speak English, this is the language all maintainers can speak and write.
|
||||
1. Please speak English, this is the language all of us can speak and write.
|
||||
2. Please ask questions or configuration/deploy problems on our Discord
|
||||
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
|
||||
server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io).
|
||||
3. Please take a moment to check that your issue doesn't already exist.
|
||||
4. Please give all relevant information below for bug reports, because
|
||||
incomplete details will be handled as an invalid report.
|
||||
|
53
.github/stale.yml
vendored
53
.github/stale.yml
vendored
@ -1,53 +0,0 @@
|
||||
# Configuration for probot-stale - https://github.com/probot/stale
|
||||
|
||||
# Number of days of inactivity before an Issue or Pull Request becomes stale
|
||||
daysUntilStale: 60
|
||||
|
||||
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
|
||||
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
|
||||
daysUntilClose: 14
|
||||
|
||||
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
|
||||
exemptLabels:
|
||||
- status/blocked
|
||||
- kind/security
|
||||
- lgtm/done
|
||||
- reviewed/confirmed
|
||||
- priority/critical
|
||||
- kind/proposal
|
||||
|
||||
# Set to true to ignore issues in a project (defaults to false)
|
||||
exemptProjects: false
|
||||
|
||||
# Set to true to ignore issues in a milestone (defaults to false)
|
||||
exemptMilestones: false
|
||||
|
||||
# Label to use when marking as stale
|
||||
staleLabel: stale
|
||||
|
||||
# Comment to post when marking as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you
|
||||
for your contributions.
|
||||
|
||||
# Comment to post when closing a stale Issue or Pull Request.
|
||||
closeComment: >
|
||||
This issue has been automatically closed because of inactivity.
|
||||
You can re-open it if needed.
|
||||
|
||||
# Limit the number of actions per hour, from 1-30. Default is 30
|
||||
limitPerRun: 1
|
||||
|
||||
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
|
||||
pulls:
|
||||
daysUntilStale: 60
|
||||
daysUntilClose: 60
|
||||
markComment: >
|
||||
This pull request has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you
|
||||
for your contributions.
|
||||
closeComment: >
|
||||
This pull request has been automatically closed because of inactivity.
|
||||
You can re-open it if needed.
|
||||
|
33
.gitignore
vendored
33
.gitignore
vendored
@ -10,9 +10,6 @@ _test
|
||||
# IntelliJ
|
||||
.idea
|
||||
|
||||
# MS VSCode
|
||||
.vscode
|
||||
|
||||
# Architecture specific extensions/prefixes
|
||||
*.[568vq]
|
||||
[568vq].out
|
||||
@ -30,7 +27,6 @@ _testmain.go
|
||||
*.prof
|
||||
|
||||
*coverage.out
|
||||
coverage.all
|
||||
|
||||
/modules/options/bindata.go
|
||||
/modules/public/bindata.go
|
||||
@ -40,7 +36,6 @@ coverage.all
|
||||
*.log
|
||||
|
||||
/gitea
|
||||
/debug
|
||||
/integrations.test
|
||||
|
||||
/bin
|
||||
@ -50,30 +45,4 @@ coverage.all
|
||||
/indexers
|
||||
/log
|
||||
/public/img/avatar
|
||||
/integrations/gitea-integration-mysql
|
||||
/integrations/gitea-integration-mysql8
|
||||
/integrations/gitea-integration-pgsql
|
||||
/integrations/gitea-integration-sqlite
|
||||
/integrations/gitea-integration-mssql
|
||||
/integrations/indexers-mysql
|
||||
/integrations/indexers-mysql8
|
||||
/integrations/indexers-pgsql
|
||||
/integrations/indexers-sqlite
|
||||
/integrations/indexers-mssql
|
||||
/integrations/mysql.ini
|
||||
/integrations/mysql8.ini
|
||||
/integrations/pgsql.ini
|
||||
/integrations/mssql.ini
|
||||
/node_modules
|
||||
/modules/indexer/issues/indexers
|
||||
routers/repo/authorized_keys
|
||||
/yarn.lock
|
||||
|
||||
# Snapcraft
|
||||
snap/.snapcraft/
|
||||
parts/
|
||||
stage/
|
||||
prime/
|
||||
*.snap
|
||||
*.snap-build
|
||||
*_source.tar.bz2
|
||||
/integrations/gitea-integration
|
||||
|
@ -1,97 +0,0 @@
|
||||
linters:
|
||||
enable:
|
||||
- gosimple
|
||||
- deadcode
|
||||
- typecheck
|
||||
- govet
|
||||
- errcheck
|
||||
- staticcheck
|
||||
- unused
|
||||
- structcheck
|
||||
- varcheck
|
||||
- golint
|
||||
- dupl
|
||||
#- gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time.
|
||||
- gofmt
|
||||
- misspell
|
||||
- gocritic
|
||||
enable-all: false
|
||||
disable-all: true
|
||||
fast: false
|
||||
|
||||
linters-settings:
|
||||
gocritic:
|
||||
disabled-checks:
|
||||
- ifElseChain
|
||||
- singleCaseSwitch # Every time this occured in the code, there was no other way.
|
||||
|
||||
issues:
|
||||
exclude-rules:
|
||||
# Exclude some linters from running on tests files.
|
||||
- path: _test\.go
|
||||
linters:
|
||||
- gocyclo
|
||||
- errcheck
|
||||
- dupl
|
||||
- gosec
|
||||
- unparam
|
||||
- staticcheck
|
||||
- path: models/migrations/v
|
||||
linters:
|
||||
- gocyclo
|
||||
- errcheck
|
||||
- dupl
|
||||
- gosec
|
||||
- linters:
|
||||
- dupl
|
||||
text: "webhook"
|
||||
- linters:
|
||||
- gocritic
|
||||
text: "`ID' should not be capitalized"
|
||||
- path: modules/templates/helper.go
|
||||
linters:
|
||||
- gocritic
|
||||
- linters:
|
||||
- unused
|
||||
- deadcode
|
||||
text: "swagger"
|
||||
- path: contrib/pr/checkout.go
|
||||
linters:
|
||||
- errcheck
|
||||
- path: models/issue.go
|
||||
linters:
|
||||
- errcheck
|
||||
- path: models/migrations/
|
||||
linters:
|
||||
- errcheck
|
||||
- path: modules/log/
|
||||
linters:
|
||||
- errcheck
|
||||
- path: routers/routes/routes.go
|
||||
linters:
|
||||
- dupl
|
||||
- path: routers/repo/view.go
|
||||
linters:
|
||||
- dupl
|
||||
- path: models/migrations/
|
||||
linters:
|
||||
- unused
|
||||
- linters:
|
||||
- staticcheck
|
||||
text: "argument x is overwritten before first use"
|
||||
- path: modules/httplib/httplib.go
|
||||
linters:
|
||||
- staticcheck
|
||||
# Enabling this would require refactoring the methods and how they are called.
|
||||
- path: models/issue_comment_list.go
|
||||
linters:
|
||||
- dupl
|
||||
# "Destroy" is misspelled in github.com/go-macaron/session/session.go:213 so it's not our responsability to fix it
|
||||
- path: modules/session/virtual.go
|
||||
linters:
|
||||
- misspell
|
||||
text: '`Destory` is a misspelling of `Destroy`'
|
||||
- path: modules/session/memory.go
|
||||
linters:
|
||||
- misspell
|
||||
text: '`Destory` is a misspelling of `Destroy`'
|
3
.lgtm
3
.lgtm
@ -1,3 +1,2 @@
|
||||
pattern = "(?)LGTM"
|
||||
self_approval_off = true
|
||||
self_approval_off = false
|
||||
ignore_maintainers_file = true
|
||||
|
1
.npmrc
1
.npmrc
@ -1 +0,0 @@
|
||||
save-exact=true
|
25
.revive.toml
25
.revive.toml
@ -1,25 +0,0 @@
|
||||
ignoreGeneratedHeader = false
|
||||
severity = "warning"
|
||||
confidence = 0.8
|
||||
errorCode = 1
|
||||
warningCode = 1
|
||||
|
||||
[rule.blank-imports]
|
||||
[rule.context-as-argument]
|
||||
[rule.context-keys-type]
|
||||
[rule.dot-imports]
|
||||
[rule.error-return]
|
||||
[rule.error-strings]
|
||||
[rule.error-naming]
|
||||
[rule.exported]
|
||||
[rule.if-return]
|
||||
[rule.increment-decrement]
|
||||
[rule.var-naming]
|
||||
[rule.var-declaration]
|
||||
[rule.package-comments]
|
||||
[rule.range]
|
||||
[rule.receiver-naming]
|
||||
[rule.time-naming]
|
||||
[rule.unexported-return]
|
||||
[rule.indent-error-flow]
|
||||
[rule.errorf]
|
11
.stylelintrc
11
.stylelintrc
@ -1,11 +0,0 @@
|
||||
extends: stylelint-config-standard
|
||||
|
||||
rules:
|
||||
block-closing-brace-empty-line-before: null
|
||||
color-hex-length: null
|
||||
comment-empty-line-before: null
|
||||
declaration-empty-line-before: null
|
||||
indentation: 4
|
||||
no-descending-specificity: null
|
||||
rule-empty-line-before: null
|
||||
selector-pseudo-element-colon-notation: null
|
51
BSDmakefile
51
BSDmakefile
@ -1,51 +0,0 @@
|
||||
# GNU makefile proxy script for BSD make
|
||||
# Written and maintained by Mahmoud Al-Qudsi <mqudsi@neosmart.net>
|
||||
# Copyright NeoSmart Technologies <https://neosmart.net/> 2014-2018
|
||||
# Obtain updates from <https://github.com/neosmart/gmake-proxy>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
#
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
JARG =
|
||||
GMAKE = "gmake"
|
||||
#When gmake is called from another make instance, -w is automatically added
|
||||
#which causes extraneous messages about directory changes to be emitted.
|
||||
#--no-print-directory silences these messages.
|
||||
GARGS = "--no-print-directory"
|
||||
|
||||
.if "$(.MAKE.JOBS)" != ""
|
||||
JARG = -j$(.MAKE.JOBS)
|
||||
.endif
|
||||
|
||||
#by default bmake will cd into ./obj first
|
||||
.OBJDIR: ./
|
||||
|
||||
.PHONY: FRC
|
||||
$(.TARGETS): FRC
|
||||
$(GMAKE) $(GARGS) $(.TARGETS:S,.DONE,,) $(JARG)
|
||||
|
||||
.DONE .DEFAULT: .SILENT
|
||||
$(GMAKE) $(GARGS) $(.TARGETS:S,.DONE,,) $(JARG)
|
||||
|
||||
.ERROR: .SILENT
|
||||
if ! which $(GMAKE) > /dev/null; then \
|
||||
echo "GNU Make is required!"; \
|
||||
fi
|
1941
CHANGELOG.md
1941
CHANGELOG.md
File diff suppressed because it is too large
Load Diff
231
CONTRIBUTING.md
231
CONTRIBUTING.md
File diff suppressed because it is too large
Load Diff
42
Dockerfile
42
Dockerfile
@ -1,41 +1,19 @@
|
||||
|
||||
###################################
|
||||
#Build stage
|
||||
FROM golang:1.12-alpine3.10 AS build-env
|
||||
|
||||
ARG GITEA_VERSION
|
||||
ARG TAGS="sqlite sqlite_unlock_notify"
|
||||
ENV TAGS "bindata $TAGS"
|
||||
|
||||
#Build deps
|
||||
RUN apk --no-cache add build-base git
|
||||
|
||||
#Setup repo
|
||||
COPY . ${GOPATH}/src/code.gitea.io/gitea
|
||||
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
|
||||
|
||||
#Checkout version if set
|
||||
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
||||
&& make clean generate build
|
||||
|
||||
FROM alpine:3.10
|
||||
LABEL maintainer="maintainers@gitea.io"
|
||||
FROM alpine:3.5
|
||||
MAINTAINER Thomas Boerger <thomas@webhippie.de>
|
||||
|
||||
EXPOSE 22 3000
|
||||
|
||||
RUN apk --no-cache add \
|
||||
bash \
|
||||
su-exec \
|
||||
ca-certificates \
|
||||
curl \
|
||||
gettext \
|
||||
sqlite \
|
||||
bash \
|
||||
git \
|
||||
linux-pam \
|
||||
openssh \
|
||||
s6 \
|
||||
sqlite \
|
||||
su-exec \
|
||||
curl \
|
||||
openssh \
|
||||
tzdata
|
||||
|
||||
RUN addgroup \
|
||||
-S -g 1000 \
|
||||
git && \
|
||||
@ -50,12 +28,12 @@ RUN addgroup \
|
||||
|
||||
ENV USER git
|
||||
ENV GITEA_CUSTOM /data/gitea
|
||||
ENV GODEBUG=netdns=go
|
||||
|
||||
VOLUME ["/data"]
|
||||
|
||||
ENTRYPOINT ["/usr/bin/entrypoint"]
|
||||
CMD ["/bin/s6-svscan", "/etc/s6"]
|
||||
|
||||
COPY docker/root /
|
||||
COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea
|
||||
RUN ln -s /app/gitea/gitea /usr/local/bin/gitea
|
||||
COPY docker /
|
||||
COPY gitea /app/gitea/gitea
|
||||
|
40
Dockerfile.aarch64
Normal file
40
Dockerfile.aarch64
Normal file
@ -0,0 +1,40 @@
|
||||
FROM multiarch/alpine:aarch64-v3.5
|
||||
|
||||
EXPOSE 22 3000
|
||||
|
||||
RUN apk --no-cache add \
|
||||
su-exec \
|
||||
ca-certificates \
|
||||
sqlite \
|
||||
bash \
|
||||
git \
|
||||
linux-pam \
|
||||
s6 \
|
||||
curl \
|
||||
openssh \
|
||||
tzdata
|
||||
RUN addgroup \
|
||||
-S -g 1000 \
|
||||
git && \
|
||||
adduser \
|
||||
-S -H -D \
|
||||
-h /data/git \
|
||||
-s /bin/bash \
|
||||
-u 1000 \
|
||||
-G git \
|
||||
git && \
|
||||
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
|
||||
|
||||
ENV USER git
|
||||
ENV GITEA_CUSTOM /data/gitea
|
||||
|
||||
COPY docker /
|
||||
COPY gitea /app/gitea/gitea
|
||||
|
||||
ENV GODEBUG=netdns=go
|
||||
|
||||
VOLUME ["/data"]
|
||||
|
||||
ENTRYPOINT ["/usr/bin/entrypoint"]
|
||||
CMD ["/bin/s6-svscan", "/etc/s6"]
|
||||
|
39
Dockerfile.rpi
Normal file
39
Dockerfile.rpi
Normal file
@ -0,0 +1,39 @@
|
||||
FROM multiarch/alpine:armhf-v3.5
|
||||
MAINTAINER Thomas Boerger <thomas@webhippie.de>
|
||||
|
||||
EXPOSE 22 3000
|
||||
|
||||
RUN apk --no-cache add \
|
||||
su-exec \
|
||||
ca-certificates \
|
||||
sqlite \
|
||||
bash \
|
||||
git \
|
||||
linux-pam \
|
||||
s6 \
|
||||
curl \
|
||||
openssh \
|
||||
tzdata
|
||||
RUN addgroup \
|
||||
-S -g 1000 \
|
||||
git && \
|
||||
adduser \
|
||||
-S -H -D \
|
||||
-h /data/git \
|
||||
-s /bin/bash \
|
||||
-u 1000 \
|
||||
-G git \
|
||||
git && \
|
||||
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
|
||||
|
||||
ENV USER git
|
||||
ENV GITEA_CUSTOM /data/gitea
|
||||
ENV GODEBUG=netdns=go
|
||||
|
||||
VOLUME ["/data"]
|
||||
|
||||
ENTRYPOINT ["/usr/bin/entrypoint"]
|
||||
CMD ["/bin/s6-svscan", "/etc/s6"]
|
||||
|
||||
COPY docker /
|
||||
COPY gitea /app/gitea/gitea
|
14
MAINTAINERS
14
MAINTAINERS
@ -7,7 +7,6 @@ Kim Carlbäcker <kim.carlbacker@gmail.com> (@bkcsoft)
|
||||
LefsFlare <nobody@nobody.tld> (@LefsFlarey)
|
||||
Lunny Xiao <xiaolunwen@gmail.com> (@lunny)
|
||||
Matthias Loibl <mail@matthiasloibl.com> (@metalmatze)
|
||||
Morgan Bazalgette <the@howl.moe> (@thehowl)
|
||||
Rachid Zarouali <nobody@nobody.tld> (@xinity)
|
||||
Rémy Boulanouar <admin@dblk.org> (@DblK)
|
||||
Sandro Santilli <strk@kbt.io> (@strk)
|
||||
@ -17,16 +16,3 @@ Patrick G <geek1011@outlook.com> (@geek1011)
|
||||
Antoine Girard <sapk@sapk.fr> (@sapk)
|
||||
Lauris Bukšis-Haberkorns <lauris@nix.lv> (@lafriks)
|
||||
Jonas Östanbäck <jonas.ostanback@gmail.com> (@cez81)
|
||||
David Schneiderbauer <dschneiderbauer@gmail.com> (@daviian)
|
||||
Peter Žeby <morlinest@gmail.com> (@morlinest)
|
||||
Matti Ranta <matti@mdranta.net> (@techknowlogick)
|
||||
Jonas Franz <info@jonasfranz.software> (@jonasfranz)
|
||||
Alexey Terentyev <axifnx@gmail.com> (@axifive)
|
||||
Lanre Adelowo <yo@lanre.wtf> (@adelowo)
|
||||
Konrad Langenberg <k@knt.li> (@kolaente)
|
||||
He-Long Zhang <outman99@hotmail.com> (@BetaCat0)
|
||||
Andrew Thornton <art27@cantab.net> (@zeripath)
|
||||
John Olheiser <john.olheiser@gmail.com> (@jolheiser)
|
||||
Richard Mahn <rich.mahn@unfoldingword.org> (@richmahn)
|
||||
Mrsdizzie <info@mrsdizzie.com> (@mrsdizzie)
|
||||
silverwind <me@silverwind.io> (@silverwind)
|
||||
|
101
README.md
101
README.md
@ -4,58 +4,36 @@
|
||||
|
||||
[](https://drone.gitea.io/go-gitea/gitea)
|
||||
[](https://discord.gg/NsatcWJ)
|
||||
[](https://matrix.to/#/#gitea:matrix.org)
|
||||
[](https://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com")
|
||||
[](https://codecov.io/gh/go-gitea/gitea)
|
||||
[](https://coverage.gitea.io/go-gitea/gitea)
|
||||
[](https://goreportcard.com/report/code.gitea.io/gitea)
|
||||
[](https://godoc.org/code.gitea.io/gitea)
|
||||
[](https://github.com/go-gitea/gitea/releases/latest)
|
||||
[](https://www.codetriage.com/go-gitea/gitea)
|
||||
[](https://opencollective.com/gitea)
|
||||
[](https://github.com/go-gitea/gitea/releases/latest)
|
||||
|
||||
| | | |
|
||||
|:---:|:---:|:---:|
|
||||
||||
|
||||
||||
|
||||
||||
|
||||
|
||||
## Purpose
|
||||
|
||||
The goal of this project is to make the easiest, fastest, and most
|
||||
painless way of setting up a self-hosted Git service.
|
||||
Using Go, this can be done with an independent binary distribution across
|
||||
**all platforms** which Go supports, including Linux, macOS, and Windows
|
||||
on x86, amd64, ARM and PowerPC architectures.
|
||||
Want to try it before doing anything else?
|
||||
Do it [with the online demo](https://try.gitea.io/)!
|
||||
This project has been
|
||||
[forked](https://blog.gitea.io/2016/12/welcome-to-gitea/) from
|
||||
[Gogs](https://gogs.io) since 2016.11 but changed a lot.
|
||||
The goal of this project is to make the easiest, fastest, and most painless way of setting up a self-hosted Git service. Using Go, this can be done with an independent binary distribution across **all platforms** which Go supports, including Linux, macOS, and Windows on x86, amd64, ARM and PowerPC architectures. Want to try it before doing anything else? Do it [with the online demo](https://try.gitea.io/)! This project has been [forked](https://blog.gitea.io/2016/12/welcome-to-gitea/) from [Gogs](https://gogs.io).
|
||||
|
||||
## Building
|
||||
## Notes
|
||||
|
||||
From the root of the source tree, run:
|
||||
1. **YOU MUST READ THE [CONTRIBUTORS GUIDE](CONTRIBUTING.md) BEFORE STARTING TO WORK ON A PULL REQUEST.**
|
||||
2. If you found a vulnerability in the project, please write privately to **security@gitea.io**. Thanks!
|
||||
3. If you're interested in using our APIs, we have experimental support with [documentation](https://godoc.org/code.gitea.io/sdk/gitea).
|
||||
|
||||
TAGS="bindata" make generate all
|
||||
## Docs
|
||||
|
||||
More info: https://docs.gitea.io/en-us/install-from-source/
|
||||
|
||||
## Using
|
||||
|
||||
./gitea web
|
||||
|
||||
NOTE: If you're interested in using our APIs, we have experimental
|
||||
support with [documentation](https://try.gitea.io/api/swagger).
|
||||
For more information and instructions about how to install Gitea please look at our [documentation](https://docs.gitea.io/en-us/). If you cannot find some specific information, then head over to our [Discord server](https://discord.gg/NsatcWJ) or [Matrix room](https://matrix.to/#/#gitea:matrix.org) to chat with us or use the [forum](https://discourse.gitea.io/).
|
||||
|
||||
## Contributing
|
||||
|
||||
Expected workflow is: Fork -> Patch -> Push -> Pull Request
|
||||
|
||||
NOTES:
|
||||
|
||||
1. **YOU MUST READ THE [CONTRIBUTORS GUIDE](CONTRIBUTING.md) BEFORE STARTING TO WORK ON A PULL REQUEST.**
|
||||
2. If you have found a vulnerability in the project, please write privately to **security@gitea.io**. Thanks!
|
||||
|
||||
## Further information
|
||||
|
||||
For more information and instructions about how to install Gitea, please look
|
||||
at our [documentation](https://docs.gitea.io/en-us/). If you have questions
|
||||
that are not covered by the documentation, you can get in contact with us on
|
||||
our [Discord server](https://discord.gg/NsatcWJ),
|
||||
or [forum](https://discourse.gitea.io/)!
|
||||
Fork -> Patch -> Push -> Pull Request
|
||||
|
||||
## Authors
|
||||
|
||||
@ -63,49 +41,6 @@ or [forum](https://discourse.gitea.io/)!
|
||||
* [Contributors](https://github.com/go-gitea/gitea/graphs/contributors)
|
||||
* [Translators](options/locale/TRANSLATORS)
|
||||
|
||||
## Backers
|
||||
|
||||
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/gitea#backer)]
|
||||
|
||||
<a href="https://opencollective.com/gitea#backers" target="_blank"><img src="https://opencollective.com/gitea/backers.svg?width=890"></a>
|
||||
|
||||
## Sponsors
|
||||
|
||||
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/gitea#sponsor)]
|
||||
|
||||
<a href="https://opencollective.com/gitea/sponsor/0/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/0/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/gitea/sponsor/1/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/1/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/gitea/sponsor/2/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/2/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/gitea/sponsor/3/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/3/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/gitea/sponsor/4/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/4/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/gitea/sponsor/5/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/5/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/gitea/sponsor/6/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/6/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/gitea/sponsor/7/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/7/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/gitea/sponsor/8/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/8/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/gitea/sponsor/9/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/9/avatar.svg"></a>
|
||||
|
||||
## FAQ
|
||||
|
||||
**How do you pronounce Gitea?**
|
||||
|
||||
Gitea is pronounced [/ɡɪ’ti:/](https://youtu.be/EM71-2uDAoY) as in "gi-tea" with a hard g.
|
||||
|
||||
**Why is this not hosted on a Gitea instance?**
|
||||
|
||||
We're [working on it](https://github.com/go-gitea/gitea/issues/1029).
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the MIT License.
|
||||
See the [LICENSE](https://github.com/go-gitea/gitea/blob/master/LICENSE) file
|
||||
for the full license text.
|
||||
|
||||
## Screenshots
|
||||
Looking for an overview of the interface? Check it out!
|
||||
|
||||
| | | |
|
||||
|:---:|:---:|:---:|
|
||||
||||
|
||||
||||
|
||||
||||
|
||||
||||
|
||||
This project is licensed under the MIT License. See the [LICENSE](https://github.com/go-gitea/gitea/blob/master/LICENSE) file for the full license text.
|
||||
|
22
README_ZH.md
22
README_ZH.md
@ -5,15 +5,20 @@
|
||||
[](https://drone.gitea.io/go-gitea/gitea)
|
||||
[](https://discord.gg/NsatcWJ)
|
||||
[](https://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com")
|
||||
[](https://codecov.io/gh/go-gitea/gitea)
|
||||
[](https://coverage.gitea.io/go-gitea/gitea)
|
||||
[](https://goreportcard.com/report/code.gitea.io/gitea)
|
||||
[](https://godoc.org/code.gitea.io/gitea)
|
||||
[](https://github.com/go-gitea/gitea/releases/latest)
|
||||
[](https://opencollective.com/gitea)
|
||||
[](https://github.com/go-gitea/gitea/releases/latest)
|
||||
|
||||
| | | |
|
||||
|:---:|:---:|:---:|
|
||||
||||
|
||||
||||
|
||||
||||
|
||||
|
||||
## 目标
|
||||
|
||||
Gitea 的首要目标是创建一个极易安装,运行非常快速,安装和使用体验良好的自建 Git 服务。我们采用 Go 作为后端语言,这使我们只要生成一个可执行程序即可。并且他还支持跨平台,支持 Linux, macOS 和 Windows 以及各种架构,除了 x86,amd64,还包括 ARM 和 PowerPC。
|
||||
Gitea的首要目标是创建一个极易安装,运行非常快速,安装和使用体验良好的自建 Git 服务。我们采用Go作为后端语言,这使我们只要生成一个可执行程序即可。并且他还支持跨平台,支持 Linux, macOS 和 Windows 以及各种架构,除了x86,amd64,还包括 ARM 和 PowerPC。
|
||||
|
||||
如果您想试用一下,请访问 [在线Demo](https://try.gitea.io/)!
|
||||
|
||||
@ -40,12 +45,3 @@ Fork -> Patch -> Push -> Pull Request
|
||||
## 授权许可
|
||||
|
||||
本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 [LICENSE](https://github.com/go-gitea/gitea/blob/master/LICENSE) 文件中。
|
||||
|
||||
## 截图
|
||||
|
||||
| | | |
|
||||
|:---:|:---:|:---:|
|
||||
||||
|
||||
||||
|
||||
||||
|
||||
||||
|
||||
|
504
cmd/admin.go
504
cmd/admin.go
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
47
cmd/cert.go
47
cmd/cert.go
@ -90,16 +90,16 @@ func pemBlockForKey(priv interface{}) *pem.Block {
|
||||
}
|
||||
}
|
||||
|
||||
func runCert(c *cli.Context) error {
|
||||
if err := argsSet(c, "host"); err != nil {
|
||||
return err
|
||||
func runCert(ctx *cli.Context) error {
|
||||
if len(ctx.String("host")) == 0 {
|
||||
log.Fatal("Missing required --host parameter")
|
||||
}
|
||||
|
||||
var priv interface{}
|
||||
var err error
|
||||
switch c.String("ecdsa-curve") {
|
||||
switch ctx.String("ecdsa-curve") {
|
||||
case "":
|
||||
priv, err = rsa.GenerateKey(rand.Reader, c.Int("rsa-bits"))
|
||||
priv, err = rsa.GenerateKey(rand.Reader, ctx.Int("rsa-bits"))
|
||||
case "P224":
|
||||
priv, err = ecdsa.GenerateKey(elliptic.P224(), rand.Reader)
|
||||
case "P256":
|
||||
@ -109,23 +109,23 @@ func runCert(c *cli.Context) error {
|
||||
case "P521":
|
||||
priv, err = ecdsa.GenerateKey(elliptic.P521(), rand.Reader)
|
||||
default:
|
||||
log.Fatalf("Unrecognized elliptic curve: %q", c.String("ecdsa-curve"))
|
||||
log.Fatalf("Unrecognized elliptic curve: %q", ctx.String("ecdsa-curve"))
|
||||
}
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to generate private key: %v", err)
|
||||
}
|
||||
|
||||
var notBefore time.Time
|
||||
if startDate := c.String("start-date"); startDate != "" {
|
||||
notBefore, err = time.Parse("Jan 2 15:04:05 2006", startDate)
|
||||
if len(ctx.String("start-date")) == 0 {
|
||||
notBefore = time.Now()
|
||||
} else {
|
||||
notBefore, err = time.Parse("Jan 2 15:04:05 2006", ctx.String("start-date"))
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to parse creation date: %v", err)
|
||||
}
|
||||
} else {
|
||||
notBefore = time.Now()
|
||||
}
|
||||
|
||||
notAfter := notBefore.Add(c.Duration("duration"))
|
||||
notAfter := notBefore.Add(ctx.Duration("duration"))
|
||||
|
||||
serialNumberLimit := new(big.Int).Lsh(big.NewInt(1), 128)
|
||||
serialNumber, err := rand.Int(rand.Reader, serialNumberLimit)
|
||||
@ -147,7 +147,7 @@ func runCert(c *cli.Context) error {
|
||||
BasicConstraintsValid: true,
|
||||
}
|
||||
|
||||
hosts := strings.Split(c.String("host"), ",")
|
||||
hosts := strings.Split(ctx.String("host"), ",")
|
||||
for _, h := range hosts {
|
||||
if ip := net.ParseIP(h); ip != nil {
|
||||
template.IPAddresses = append(template.IPAddresses, ip)
|
||||
@ -156,7 +156,7 @@ func runCert(c *cli.Context) error {
|
||||
}
|
||||
}
|
||||
|
||||
if c.Bool("ca") {
|
||||
if ctx.Bool("ca") {
|
||||
template.IsCA = true
|
||||
template.KeyUsage |= x509.KeyUsageCertSign
|
||||
}
|
||||
@ -170,28 +170,17 @@ func runCert(c *cli.Context) error {
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to open cert.pem for writing: %v", err)
|
||||
}
|
||||
err = pem.Encode(certOut, &pem.Block{Type: "CERTIFICATE", Bytes: derBytes})
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to encode certificate: %v", err)
|
||||
}
|
||||
err = certOut.Close()
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to write cert: %v", err)
|
||||
}
|
||||
pem.Encode(certOut, &pem.Block{Type: "CERTIFICATE", Bytes: derBytes})
|
||||
certOut.Close()
|
||||
log.Println("Written cert.pem")
|
||||
|
||||
keyOut, err := os.OpenFile("key.pem", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to open key.pem for writing: %v", err)
|
||||
}
|
||||
err = pem.Encode(keyOut, pemBlockForKey(priv))
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to encode key: %v", err)
|
||||
}
|
||||
err = keyOut.Close()
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to write key: %v", err)
|
||||
}
|
||||
pem.Encode(keyOut, pemBlockForKey(priv))
|
||||
keyOut.Close()
|
||||
log.Println("Written key.pem")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
48
cmd/cmd.go
48
cmd/cmd.go
@ -1,48 +0,0 @@
|
||||
// Copyright 2018 The Gitea Authors. All rights reserved.
|
||||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package cmd provides subcommands to the gitea binary - such as "web" or
|
||||
// "admin".
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"code.gitea.io/gitea/models"
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
"code.gitea.io/gitea/modules/util"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
// argsSet checks that all the required arguments are set. args is a list of
|
||||
// arguments that must be set in the passed Context.
|
||||
func argsSet(c *cli.Context, args ...string) error {
|
||||
for _, a := range args {
|
||||
if !c.IsSet(a) {
|
||||
return errors.New(a + " is not set")
|
||||
}
|
||||
|
||||
if util.IsEmptyString(a) {
|
||||
return errors.New(a + " is required")
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func initDB() error {
|
||||
return initDBDisableConsole(false)
|
||||
}
|
||||
|
||||
func initDBDisableConsole(disableConsole bool) error {
|
||||
setting.NewContext()
|
||||
models.LoadConfigs()
|
||||
|
||||
setting.NewXORMLogService(disableConsole)
|
||||
if err := models.SetEngine(); err != nil {
|
||||
return fmt.Errorf("models.SetEngine: %v", err)
|
||||
}
|
||||
return nil
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user