diff --git a/pkg/store/git/git.go b/pkg/store/git/git.go index d92b7b3..a85da00 100644 --- a/pkg/store/git/git.go +++ b/pkg/store/git/git.go @@ -199,11 +199,6 @@ func (s *Store) Commit() (changed bool, err error) { return false, nil } - err = s.Git("pull", "-s", "recursive", "-X", "ours") - if err != nil { - return false, fmt.Errorf("failed to git pull -s recursive -X ours: %v", err) - } - err = s.Git("add", "-A") if err != nil { return false, fmt.Errorf("failed to git add -A: %v", err) @@ -237,6 +232,11 @@ func (s *Store) commitAndPush() { return } + err = s.Git("pull", "-s", "recursive", "-X", "ours", "--no-edit") + if err != nil { + return false, fmt.Errorf("failed to git pull -s recursive -X ours --no-edit: %v", err) + } + err = s.Push() if err != nil { s.Logger.Errorf("%v", err)