We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f25d088 commit fc59665Copy full SHA for fc59665
modules/git/commit_info_test.go
@@ -62,7 +62,7 @@ func testGetCommitsInfo(t *testing.T, repo1 *Repository) {
62
continue
63
}
64
assert.NotNil(t, commit)
65
- assert.NotEmpty(t, commit.TreeID)
+ assert.NotNil(t, commit.TreeID)
66
67
tree, err := NewTree(repo1, commit.TreeID).SubTree(testCase.Path)
68
if err != nil {
routers/api/v1/repo/wiki.go
@@ -196,7 +196,7 @@ func getWikiPage(ctx *context.APIContext, wikiName wiki_service.WebPath) *api.Wi
196
commitsCount, _ := wikiRepo.FileCommitsCount(ctx.Repo.Repository.DefaultWikiBranch, pageFilename)
197
198
// Get last change information.
199
- lastCommit, err := wikiRepo.GetCommitByPath(commit.ID, pageFilename)
+ lastCommit, err := wikiRepo.GetCommitByPathDefaultBranch(pageFilename)
200
201
ctx.APIErrorInternal(err)
202
return nil
@@ -317,7 +317,7 @@ func ListWikiPages(ctx *context.APIContext) {
317
if i < skip || i >= maxNum || !entry.IsRegular() {
318
319
320
- c, err := wikiRepo.GetCommitByPath(commit.ID, entry.Name())
+ c, err := wikiRepo.GetCommitByPathDefaultBranch(entry.Name())
321
322
323
return
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments