mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-01 17:38:33 +00:00
Fix issue on windows
This commit is contained in:
parent
409e4cde7a
commit
7ab94fe816
6 changed files with 18 additions and 17 deletions
24
update.go
24
update.go
|
@ -5,18 +5,18 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"strconv"
|
||||
"container/list"
|
||||
"container/list"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"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"
|
||||
"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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue