@@ -1531,7 +1531,7 @@ func registerWebRoutes(m *web.Router) {
15311531 m .Group ("/commits" , func () {
15321532 m .Get ("" , repo .SetWhitespaceBehavior , repo .GetPullDiffStats , repo .ViewPullCommits )
15331533 m .Get ("/list" , repo .GetPullCommits )
1534- m .Get ("/{sha:[a-f0-9]{7,40 }}" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .SetWhitespaceBehavior , repo .SetShowOutdatedComments , repo .ViewPullFilesForSingleCommit )
1534+ m .Get ("/{sha:[a-f0-9]{7,64 }}" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .SetWhitespaceBehavior , repo .SetShowOutdatedComments , repo .ViewPullFilesForSingleCommit )
15351535 })
15361536 m .Post ("/merge" , context .RepoMustNotBeArchived (), web .Bind (forms.MergePullRequestForm {}), repo .MergePullRequest )
15371537 m .Post ("/cancel_auto_merge" , context .RepoMustNotBeArchived (), repo .CancelAutoMergePullRequest )
@@ -1540,7 +1540,7 @@ func registerWebRoutes(m *web.Router) {
15401540 m .Post ("/cleanup" , context .RepoMustNotBeArchived (), repo .CleanUpPullRequest )
15411541 m .Group ("/files" , func () {
15421542 m .Get ("" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .SetWhitespaceBehavior , repo .SetShowOutdatedComments , repo .ViewPullFilesForAllCommitsOfPr )
1543- m .Get ("/{shaFrom:[a-f0-9]{7,40 }}..{shaTo:[a-f0-9]{7,40 }}" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .SetWhitespaceBehavior , repo .SetShowOutdatedComments , repo .ViewPullFilesForRange )
1543+ m .Get ("/{shaFrom:[a-f0-9]{7,64 }}..{shaTo:[a-f0-9]{7,64 }}" , repo .SetEditorconfigIfExists , repo .SetDiffViewStyle , repo .SetWhitespaceBehavior , repo .SetShowOutdatedComments , repo .ViewPullFilesForRange )
15441544 m .Group ("/reviews" , func () {
15451545 m .Get ("/new_comment" , repo .RenderNewCodeCommentForm )
15461546 m .Post ("/comments" , web .Bind (forms.CodeCommentForm {}), repo .SetShowOutdatedComments , repo .CreateCodeComment )
0 commit comments