r.Get("/commit/:branchname", repo.Diff)
r.Get("/commit/:branchname/*", repo.Diff)
r.Get("/releases", repo.Releases)
- r.Get("/archive/*.*", repo.Download)
+ r.Get("/archive/:branchname/*.*", repo.Download)
r.Get("/compare/:before([a-z0-9]+)...:after([a-z0-9]+)", repo.CompareDiff)
}, ignSignIn, middleware.RepoAssignment(true, true))
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.5.4.0922 Beta"
+const APP_VER = "0.5.4.0923 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}
tag.Id = id
+ tag.Object = id
tag.repo = repo
repo.tagCache[id] = tag
ctx.Handle(404, "RepoAssignment invalid tag", nil)
return
}
- ctx.Repo.Commit, _ = ctx.Repo.Tag.Commit()
+ ctx.Repo.Commit, err = ctx.Repo.Tag.Commit()
+ if err != nil {
+ ctx.Handle(500, "RepoAssignment", fmt.Errorf("fail to get tag commit(%s): %v", refName, err))
+ return
+ }
ctx.Repo.CommitId = ctx.Repo.Commit.Id.String()
} else if len(refName) == 40 {
ctx.Repo.IsCommit = true
return
}
} else {
- ctx.Handle(404, "RepoAssignment invalid repo", errors.New("branch or tag not exist"))
+ ctx.Handle(404, "RepoAssignment invalid repo", fmt.Errorf("branch or tag not exist: %s", refName))
return
}
kbd,
pre,
samp {
- font: 14px Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ font-family: monospace, monospace;
+ font-size: 1em;
}
.text-left {
text-align: left;
kbd,
pre,
samp {
- font: 14px Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ font-family: monospace, monospace;
+ font-size: 1em;
}
.text-left {
text-align: left;
}
-
.text-right {
text-align: right;
}
-
.text-center {
text-align: center;
}
-
.list-no-style {
list-style: none;
}
-0.5.4.0922 Beta
\ No newline at end of file
+0.5.4.0923 Beta
\ No newline at end of file