aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gogs.go2
-rw-r--r--models/repo.go4
-rw-r--r--templates/.VERSION2
3 files changed, 4 insertions, 4 deletions
diff --git a/gogs.go b/gogs.go
index 32b9c785..2601c105 100644
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.6.9.0907 Beta"
+const APP_VER = "0.6.9.0909 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
diff --git a/models/repo.go b/models/repo.go
index 62a8b974..33451ecc 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -630,7 +630,7 @@ func initRepository(e Engine, repoPath string, u *User, repo *Repository, opts C
}
tmpDir := filepath.Join(os.TempDir(), "gogs-"+repo.Name+"-"+com.ToStr(time.Now().Nanosecond()))
- fmt.Println(tmpDir)
+
// Initialize repository according to user's choice.
if opts.AutoInit {
os.MkdirAll(tmpDir, os.ModePerm)
@@ -1231,7 +1231,7 @@ func SearchRepositoryByName(opt SearchOption) (repos []*Repository, err error) {
sess.Where("owner_id=?", opt.Uid)
}
if !opt.Private {
- sess.And("is_private=false")
+ sess.And("is_private=?", false)
}
sess.And("lower_name like ?", "%"+opt.Keyword+"%").Find(&repos)
return repos, err
diff --git a/templates/.VERSION b/templates/.VERSION
index 41e2b2e2..105769c6 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.6.9.0907 Beta \ No newline at end of file
+0.6.9.0909 Beta \ No newline at end of file