History

Use gitea logging module for git module (#16243)

remove log() func from gogs times and switch to proper logging

6543 committed 5 years ago

Commit 3ef23d51 parent 44b8b0719 files · +60 −58Browse files

Showing the changes to services/gitdiff/gitdiff_test.go (1 of 19 files). Show all

Unified · Split

services/gitdiff/gitdiff_test.go+0−2
@@ -13,7 +13,6 @@ import ( · 12 unmodified lines
1313 "testing"
1414
1515 "code.gitea.io/gitea/models"
16− "code.gitea.io/gitea/modules/git"
1716 "code.gitea.io/gitea/modules/highlight"
1817 "code.gitea.io/gitea/modules/setting"
1918 jsoniter "github.com/json-iterator/go"
@@ -514,7 +513,6 @@ func TestDiffLine_GetCommentSide(t *testing.T) { · 494 unmodified lines
514513 }
515514
516515 func TestGetDiffRangeWithWhitespaceBehavior(t *testing.T) {
517− git.Debug = true
518516 for _, behavior := range []string{"-w", "--ignore-space-at-eol", "-b", ""} {
519517 diffs, err := GetDiffRangeWithWhitespaceBehavior("./testdata/academic-module", "559c156f8e0178b71cb44355428f24001b08fc68", "bd7063cc7c04689c4d082183d32a604ed27a24f9",
520518 setting.Git.MaxGitDiffLines, setting.Git.MaxGitDiffLines, setting.Git.MaxGitDiffFiles, behavior)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t