Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuc authored Dec 30, 2021
1 parent 77d6ec7 commit 0fc0b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/git-sync/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func addNewVersion(item Item) (*time.Time, error) {
}

if hasFiles {
if err := git("add", dest); err != nil {
if err := git("add", "--sparse", dest); err != nil {
return nil, errors.Wrap(err, "failed to run git")
}

Expand Down

0 comments on commit 0fc0b5b

Please sign in to comment.