Skip to content

Commit a25bde4

Browse files
author
Dragonn
committed
Added GIT pull before commit
1 parent e6353dd commit a25bde4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/store/git/git.go

+5
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ func (s *Store) Commit() (changed bool, err error) {
199199
return false, nil
200200
}
201201

202+
err = s.Git("pull", "-s", "recursive", "-X", "ours")
203+
if err != nil {
204+
return false, fmt.Errorf("failed to git pull -s recursive -X ours: %v", err)
205+
}
206+
202207
err = s.Git("add", "-A")
203208
if err != nil {
204209
return false, fmt.Errorf("failed to git add -A: %v", err)

0 commit comments

Comments
 (0)