From 8812cb42937d7a2e12169697dc03e52ecaa27de7 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Wed, 21 Feb 2024 22:48:39 +0000 Subject: [PATCH] feat: allow amended commits --- client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index 553e576..f4ad73c 100644 --- a/client/client.go +++ b/client/client.go @@ -198,7 +198,7 @@ func (c Client) PushRepo(repo api.Repo) (err error) { remote := fmt.Sprintf("git://%s/%s", addr, repo.Name) log.Debug().Msgf("git proxy remote: %v", remote) - raw, err := exec.Command("git", "--work-tree", repo.Path, "push", remote). + raw, err := exec.Command("git", "--work-tree", repo.Path, "push", "--force", remote). CombinedOutput() if err != nil { return