summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-01-22 23:46:46 +0000
committerGitHub <noreply@github.com>2020-01-22 23:46:46 +0000
commitc8d7ae1ee33e31ed15632a26c74ba9a3ea115043 (patch)
treef26103ff819952d2875a48ce0b1fe99417ad2bbd /modules/setting
parent608cd58db670b061ca898930401458b30264a6c9 (diff)
downloadgitea-c8d7ae1ee33e31ed15632a26c74ba9a3ea115043.tar.gz
gitea-c8d7ae1ee33e31ed15632a26c74ba9a3ea115043.zip
Make archive prefixing configurable with a global setting (#9943)
* Allow archive prefix setting * Update copyright * Update copyright
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/repository.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/repository.go b/modules/setting/repository.go
index 807b29b2d8..8af3eaaf46 100644
--- a/modules/setting/repository.go
+++ b/modules/setting/repository.go
@@ -39,6 +39,7 @@ var (
EnablePushCreateOrg bool
DisabledRepoUnits []string
DefaultRepoUnits []string
+ PrefixArchiveFiles bool
// Repository editor settings
Editor struct {
@@ -102,6 +103,7 @@ var (
EnablePushCreateOrg: false,
DisabledRepoUnits: []string{},
DefaultRepoUnits: []string{},
+ PrefixArchiveFiles: true,
// Repository editor settings
Editor: struct {