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:
@@ -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}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user