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 92c48da commit 5a6f7edCopy full SHA for 5a6f7ed
routers/repo/commit.go
@@ -9,11 +9,11 @@ import (
9
"path"
10
11
"github.com/Unknwon/paginater"
12
+ "github.com/go-gitea/git"
13
"github.com/go-gitea/gitea/models"
14
"github.com/go-gitea/gitea/modules/base"
15
"github.com/go-gitea/gitea/modules/context"
16
"github.com/go-gitea/gitea/modules/setting"
- "github.com/go-gitea/git"
17
)
18
19
const (
@@ -158,7 +158,9 @@ func Diff(ctx *context.Context) {
158
}
159
return
160
161
-
+ if len(commitID) != 40 {
162
+ commitID = commit.ID.String()
163
+ }
164
diff, err := models.GetDiffCommit(models.RepoPath(userName, repoName),
165
commitID, setting.Git.MaxGitDiffLines,
166
setting.Git.MaxGitDiffLineCharacters, setting.Git.MaxGitDiffFiles)
0 commit comments