Skip to content

Commit bcb7884

Browse files
committed
fix SourcePath
1 parent 6a9a833 commit bcb7884

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

routers/web/repo/pull.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,6 @@ func viewPullFiles(ctx *context.Context, specifiedStartCommit, specifiedEndCommi
887887
}
888888

889889
if pull.HeadRepo != nil {
890-
ctx.Data["SourcePath"] = pull.BaseRepo.Link() + "/src/commit/" + endCommitID
891-
892890
if !pull.HasMerged && ctx.Doer != nil {
893891
perm, err := access_model.GetUserRepoPermission(ctx, pull.HeadRepo, ctx.Doer)
894892
if err != nil {

0 commit comments

Comments
 (0)