fix: Uncomment push

This commit is contained in:
Artёm Mishin committed 2024-02-03 07:43:01 +03:00
1 parent c4d68efce7
commit a76307732e
1 file changed
+11 -8
+11 -8
View File
@@ -4,6 +4,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/config"
"github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing"
"github.com/go-git/go-git/v5/plumbing/object" "github.com/go-git/go-git/v5/plumbing/object"
"github.com/go-git/go-git/v5/plumbing/transport" "github.com/go-git/go-git/v5/plumbing/transport"
@@ -379,18 +380,20 @@ func update(repository *git.Repository, branch string, auth transport.AuthMethod
// push // push
log.Debug("Pushing the changes") log.Debug("Pushing the changes")
//err = repository.Push(&git.PushOptions{ err = repository.Push(&git.PushOptions{
// Auth: auth, Auth: auth,
// Progress: os.Stdout, Progress: os.Stdout,
// RemoteName: "origin", RemoteName: "origin",
// RefSpecs: []config.RefSpec{ RefSpecs: []config.RefSpec{
// config.RefSpec(fmt.Sprintf("refs/heads/%s:refs/heads/%s", branch, branch)), config.RefSpec(fmt.Sprintf("refs/heads/%s:refs/heads/%s", branch, branch)),
// }, },
//}) })
if err != nil { if err != nil {
panic(err) panic(err)
} }
log.Info("Update complete")
} }
func listen(addr string) { func listen(addr string) {