Skip to content

Commit

Permalink
Merge pull request #73 from Dragonn/fix-issue-72
Browse files Browse the repository at this point in the history
Added GIT pull before commit
  • Loading branch information
bpineau authored Jul 6, 2019
2 parents e6353dd + bf18cbe commit 327d5c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/store/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ func (s *Store) commitAndPush() {
return
}

err = s.Git("pull", "-s", "recursive", "-X", "ours", "--no-edit")
if err != nil {
s.Logger.Errorf("failed to git pull -s recursive -X ours --no-edit: %v", err)
}

err = s.Push()
if err != nil {
s.Logger.Errorf("%v", err)
Expand Down

0 comments on commit 327d5c1

Please sign in to comment.