Skip to content

Commit

Permalink
comment commit count tests since git clone depth is 50
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Mar 27, 2019
1 parent 26b0dcc commit e120e7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions modules/git/commit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
)

func TestCommitsCount(t *testing.T) {
// TODO: since drone will only git clone -depth=50, this should be moved to recent commit id
commitsCount, err := CommitsCount("", "22d3d029e6f7e6359f3a6fbe8b7827b579ac7445")
// FIXME: since drone will only git clone -depth=50, this should be moved to recent commit id
/*commitsCount, err := CommitsCount("", "22d3d029e6f7e6359f3a6fbe8b7827b579ac7445")
assert.NoError(t, err)
assert.Equal(t, int64(7287), commitsCount)
assert.Equal(t, int64(7287), commitsCount)*/
}

func TestGetFullCommitID(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion modules/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Version() string {
var (
// Debug enables verbose logging on everything.
// This should be false in case Gogs starts in SSH mode.
Debug = true
Debug = false
// Prefix the log prefix
Prefix = "[git-module] "
// GitVersionRequired is the minimum Git version required
Expand Down

0 comments on commit e120e7f

Please sign in to comment.