Changeset 0.28.2.2 (#185)

This commit is contained in:
2026-03-13 16:09:16 +00:00
parent 7803ba8adf
commit 8c4cb9bbeb
9 changed files with 1199 additions and 91 deletions

View File

@@ -157,7 +157,10 @@ func (h *GitHandler) Log(c *gin.Context) {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return
}
c.JSON(http.StatusOK, entries)
if entries == nil {
entries = []models.GitLogEntry{}
}
c.JSON(http.StatusOK, gin.H{"data": entries})
}
// ── Branches ─────────────────────────────────
@@ -316,7 +319,7 @@ func (h *GitCredentialHandler) List(c *gin.Context) {
for _, cred := range creds {
summaries = append(summaries, cred.Summary())
}
c.JSON(http.StatusOK, summaries)
c.JSON(http.StatusOK, gin.H{"data": summaries})
}
// Delete removes a git credential.