From 5e96daaec2286e2d8cbad5f69b10307149139445 Mon Sep 17 00:00:00 2001 From: dadada Date: Thu, 2 Jun 2022 19:24:38 +0200 Subject: [PATCH] remove explicit refspec --- main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/main.go b/main.go index e0f4c95..5c99f6f 100644 --- a/main.go +++ b/main.go @@ -123,12 +123,9 @@ func Push( auth *githttp.BasicAuth, remote *git.Remote, ) error { - refspec := fmt.Sprintf("+refs/heads/*:refs/heads/*") - return remote.Push(&git.PushOptions{ RemoteName: DefaultRemoteName, Auth: auth, - RefSpecs: []config.RefSpec { config.RefSpec(refspec) }, }) }