aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/auth/repo_form.go1
-rw-r--r--modules/context/repo.go1
-rw-r--r--modules/user/user.go2
3 files changed, 3 insertions, 1 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index aa74ab3b..13e53497 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -88,6 +88,7 @@ type RepoSettingForm struct {
Interval int
MirrorAddress string
Private bool
+ EnablePrune bool
// Advanced settings
EnableWiki bool
diff --git a/modules/context/repo.go b/modules/context/repo.go
index a330da5c..a7ca17d3 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -160,6 +160,7 @@ func RepoAssignment(args ...bool) macaron.Handler {
ctx.Handle(500, "GetMirror", err)
return
}
+ ctx.Data["MirrorEnablePrune"] = ctx.Repo.Mirror.EnablePrune
ctx.Data["MirrorInterval"] = ctx.Repo.Mirror.Interval
ctx.Data["Mirror"] = ctx.Repo.Mirror
}
diff --git a/modules/user/user.go b/modules/user/user.go
index 8a2557f3..4415632e 100644
--- a/modules/user/user.go
+++ b/modules/user/user.go
@@ -5,7 +5,7 @@
package user
import (
- "os"
+ "os"
)
func CurrentUsername() string {