Gogs (Go Git Service) is a painless self-hosted Git service.
-##### Current version: 0.6.8 Beta
+##### Current version: 0.6.9 Beta
<table>
<tr>
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.6.8.0902 Beta"
+const APP_VER = "0.6.9.0903 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
return err
}
-func (repo *Repository) RepoPath() (string, error) {
- if err := repo.GetOwner(); err != nil {
+func (repo *Repository) repoPath(e Engine) (string, error) {
+ if err := repo.getOwner(e); err != nil {
return "", err
}
return RepoPath(repo.Owner.Name, repo.Name), nil
}
+func (repo *Repository) RepoPath() (string, error) {
+ return repo.repoPath(x)
+}
+
func (repo *Repository) RepoLink() (string, error) {
if err := repo.GetOwner(); err != nil {
return "", err
}
// Remove repository files.
- repoPath, err := repo.RepoPath()
+ repoPath, err := repo.repoPath(sess)
if err != nil {
return fmt.Errorf("RepoPath: %v", err)
}
}
type NewSlackHookForm struct {
- PayloadURL string `binding:"Required`
+ PayloadURL string `binding:"Required;Url`
Channel string `binding:"Required"`
Username string
IconURL string