diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-26 09:22:08 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-26 09:22:08 -0400 |
commit | 7ab94fe816bd726c995f2937a040c3d8c7898205 (patch) | |
tree | fcf84c1e759c158f461af3cc9f7236443f4992d6 /update.go | |
parent | 409e4cde7a379bbdbe53367b3726f64b80aed0eb (diff) | |
download | gitea-7ab94fe816bd726c995f2937a040c3d8c7898205.tar.gz gitea-7ab94fe816bd726c995f2937a040c3d8c7898205.zip |
Fix issue on windows
Diffstat (limited to 'update.go')
-rw-r--r-- | update.go | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -5,18 +5,18 @@ package main import ( -"os" -"os/exec" -"strings" -"strconv" -"container/list" - -"github.com/codegangsta/cli" -//"github.com/gogits/gogs/modules/log" -"github.com/gogits/gogs/models" -"github.com/gogits/gogs/modules/base" -"github.com/qiniu/log" -"github.com/gogits/git" + "container/list" + "os" + "os/exec" + "strconv" + "strings" + + "github.com/codegangsta/cli" + //"github.com/gogits/gogs/modules/log" + "github.com/gogits/git" + "github.com/gogits/gogs/models" + "github.com/gogits/gogs/modules/base" + "github.com/qiniu/log" ) var CmdUpdate = cli.Command{ @@ -103,7 +103,7 @@ func runUpdate(c *cli.Context) { // if a new branch if strings.HasPrefix(oldCommitId, "0000000") { l, err = ref.AllCommits() - + } else { l = ref.CommitsBetween(newCommit, oldCommit) } |