1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-01 23:46:53 +00:00

Don't omit commit id when marshal commit to json (#491)

This commit is contained in:
Xiangyue Cai
2021-09-23 14:12:53 +08:00
committed by GitHub
parent 88e917c58e
commit c31dcc79ce
7 changed files with 127 additions and 13 deletions

View File

@@ -909,9 +909,9 @@ func putUpdateBranchCB(rsp http.ResponseWriter, r *http.Request) *appError {
return &appError{err, "", http.StatusInternalServerError}
}
base, err := commitmgr.Load(repoID, newCommit.ParentID)
base, err := commitmgr.Load(repoID, newCommit.ParentID.String)
if err != nil {
err := fmt.Errorf("Failed to get commit %s for repo %s", newCommit.ParentID, repoID)
err := fmt.Errorf("Failed to get commit %s for repo %s", newCommit.ParentID.String, repoID)
return &appError{err, "", http.StatusInternalServerError}
}