Skip to content

Commit

Permalink
Added GIT pull before commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragonn committed Feb 1, 2019
1 parent e6353dd commit a25bde4
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 @@ -199,6 +199,11 @@ 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)
Expand Down

0 comments on commit a25bde4

Please sign in to comment.