Small fixes (#42)

* UI color fixes
* Typos
* Fancy badge in README
This commit is contained in:
Thomas Miceli
2023-05-27 20:20:20 +02:00
committed by GitHub
parent 0a542431c9
commit 62f91c5ed2
5 changed files with 7 additions and 7 deletions

View File

@ -318,7 +318,7 @@ func processCreate(ctx echo.Context) error {
}
if err = gist.AddAndCommitFiles(&dto.Files); err != nil {
return errorRes(500, "Error adding and commiting files", err)
return errorRes(500, "Error adding and committing files", err)
}
if isCreate {

View File

@ -151,10 +151,9 @@ func infoRefs(ctx echo.Context) error {
gist := getData(ctx, "gist").(*models.Gist)
serviceType := ctx.QueryParam("service")
if !strings.HasPrefix(serviceType, "git-") {
service = ""
if strings.HasPrefix(serviceType, "git-") {
service = strings.TrimPrefix(serviceType, "git-")
}
service = strings.TrimPrefix(serviceType, "git-")
if service != "upload-pack" && service != "receive-pack" {
if err := gist.UpdateServerInfo(); err != nil {