path = github.com/gogits/gogs
[deps]
+github.com/Unknwon/cae =
+github.com/Unknwon/com =
+github.com/Unknwon/goconfig =
github.com/codegangsta/cli =
github.com/go-martini/martini =
-github.com/nfnt/resize =
-github.com/lunny/xorm =
github.com/go-sql-driver/mysql =
+github.com/go-xorm/xorm =
+github.com/gogits/cache =
+github.com/gogits/gfm =
+github.com/gogits/git =
+github.com/gogits/logs =
+github.com/gogits/oauth2 =
+github.com/gogits/session =
github.com/lib/pq =
+github.com/nfnt/resize =
github.com/qiniu/log =
github.com/robfig/cron =
-github.com/Unknwon/com =
-github.com/Unknwon/cae =
-github.com/Unknwon/goconfig =
-github.com/gogits/logs =
-github.com/gogits/binding =
-github.com/gogits/git =
-github.com/gogits/gfm =
-github.com/gogits/cache =
-github.com/gogits/session =
-github.com/gogits/oauth2 =
[res]
include = templates|public|conf
[repository]
ROOT =
+SCRIPT_TYPE = bash
LANG_IGNS = Google Go|C|C++|Python|Ruby|C Sharp|Java|Objective-C
LICENSES = Apache v2 License|GPL v2|MIT License|Affero GPL|Artistic License 2.0|BSD (3-Clause) License
SUBJECT = %(APP_NAME)s
; Mail server
; Gmail: smtp.gmail.com:587
+; QQ: smtp.qq.com:25
HOST =
; Mail from address
FROM =
// Test that go1.2 tag above is included in builds. main.go refers to this definition.
const go12tag = true
-const APP_VER = "0.3.0.0418 Alpha"
+const APP_VER = "0.3.0.0419 Alpha"
func init() {
base.AppVer = APP_VER
// hook/post-update
if err := createHookUpdate(filepath.Join(repoPath, "hooks", "update"),
- fmt.Sprintf("#!/usr/bin/env bash\n%s update $1 $2 $3\n",
+ fmt.Sprintf("#!/usr/bin/env %s\n%s update $1 $2 $3\n", base.ScriptType,
strings.Replace(appPath, "\\", "/", -1))); err != nil {
return err
}
}
var (
- AppVer string
- AppName string
- AppLogo string
- AppUrl string
- IsProdMode bool
- Domain string
- SecretKey string
- RunUser string
+ AppVer string
+ AppName string
+ AppLogo string
+ AppUrl string
+ IsProdMode bool
+ Domain string
+ SecretKey string
+ RunUser string
+
RepoRootPath string
+ ScriptType string
InstallLock bool
if err = os.MkdirAll(RepoRootPath, os.ModePerm); err != nil {
qlog.Fatalf("Fail to create RepoRootPath(%s): %v\n", RepoRootPath, err)
}
+ ScriptType = Cfg.MustValue("repository", "SCRIPT_TYPE", "bash")
}
func NewBaseServices() {
}
ctx.Repo.Repository.Description = ctx.Query("desc")
ctx.Repo.Repository.Website = ctx.Query("site")
+ ctx.Repo.Repository.IsPrivate = ctx.Query("private") == "on"
ctx.Repo.Repository.IsGoget = ctx.Query("goget") == "on"
if err := models.UpdateRepository(ctx.Repo.Repository); err != nil {
ctx.Handle(404, "repo.SettingPost(update)", err)
<div class="form-group">
<div class="col-md-offset-3 col-md-9">
+ <div class="checkbox">
+ <label style="line-height: 15px;">
+ <input type="checkbox" name="private" {{if .Repository.IsPrivate}}checked{{end}}>
+ <strong>Make this repository private</strong>
+ </label>
+ </div>
+
<div class="checkbox">
<label style="line-height: 15px;">
<input type="checkbox" name="goget" {{if .Repository.IsGoget}}checked{{end}}>