Quellcode durchsuchen

Fixes #7564 - Malformed URLs in API git/commits response (#7565) (#7567)

tags/v1.9.0
Richard Mahn vor 4 Jahren
Ursprung
Commit
103a66ae83
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      routers/api/v1/repo/commits.go

+ 2
- 2
routers/api/v1/repo/commits.go Datei anzeigen

@@ -92,7 +92,7 @@ func GetSingleCommit(ctx *context.APIContext) {
URL: setting.AppURL + ctx.Link[1:],
SHA: commit.ID.String(),
},
HTMLURL: ctx.Repo.Repository.HTMLURL() + "/commits/" + commit.ID.String(),
HTMLURL: ctx.Repo.Repository.HTMLURL() + "/commit/" + commit.ID.String(),
RepoCommit: &api.RepoCommit{
URL: setting.AppURL + ctx.Link[1:],
Author: &api.CommitUser{
@@ -111,7 +111,7 @@ func GetSingleCommit(ctx *context.APIContext) {
},
Message: commit.Message(),
Tree: &api.CommitMeta{
URL: ctx.Repo.Repository.APIURL() + "/trees/" + commit.ID.String(),
URL: ctx.Repo.Repository.APIURL() + "/git/trees/" + commit.ID.String(),
SHA: commit.ID.String(),
},
},

Laden…
Abbrechen
Speichern