1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

New UI merge in progress

This commit is contained in:
Unknwon
2014-07-26 00:24:27 -04:00
parent 0a739cf9ac
commit 8dd07c0ddd
199 changed files with 15030 additions and 9325 deletions

View File

@@ -8,6 +8,7 @@ import (
"os"
"github.com/codegangsta/cli"
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/modules/log"
)
@@ -30,9 +31,9 @@ func runUpdate(c *cli.Context) {
args := c.Args()
if len(args) != 3 {
log.GitLogger.Fatal("received less 3 parameters")
log.GitLogger.Fatal(2, "received less 3 parameters")
} else if args[0] == "" {
log.GitLogger.Fatal("refName is empty, shouldn't use")
log.GitLogger.Fatal(2, "refName is empty, shouldn't use")
}
uuid := os.Getenv("uuid")
@@ -45,6 +46,6 @@ func runUpdate(c *cli.Context) {
}
if err := models.AddUpdateTask(&task); err != nil {
log.GitLogger.Fatal(err.Error())
log.GitLogger.Fatal(2, err.Error())
}
}