Unknwon 9 سال پیش
والد
کامیت
9a0902523b
3فایلهای تغییر یافته به همراه119 افزوده شده و 112 حذف شده
  1. 1 0
      conf/locale/locale_en-US.ini
  2. 112 112
      modules/bindata/bindata.go
  3. 6 0
      routers/repo/setting.go

+ 1 - 0
conf/locale/locale_en-US.ini

@@ -164,6 +164,7 @@ activate_account = Please activate your account
 activate_email = Verify your e-mail address
 reset_password = Reset your password
 register_success = Register success, Welcome
+register_notify = Welcome on board
 
 [modal]
 yes = Yes

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 112 - 112
modules/bindata/bindata.go


+ 6 - 0
routers/repo/setting.go

@@ -85,6 +85,12 @@ func SettingsPost(ctx *middleware.Context, form auth.RepoSettingForm) {
 		}
 		repo.Description = form.Description
 		repo.Website = form.Website
+
+		// Visibility of forked repository is forced sync with base repository.
+		if repo.IsFork {
+			form.Private = repo.BaseRepo.IsPrivate
+		}
+
 		visibilityChanged := repo.IsPrivate != form.Private
 		repo.IsPrivate = form.Private
 		if err := models.UpdateRepository(repo, visibilityChanged); err != nil {

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است