Skip to content

Commit 74c2330

Browse files
committed
Use consistent generation.json serialization in push v2
1 parent edca0a9 commit 74c2330

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/entire/cli/strategy/push_v2.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"time"
1515

1616
"github.com/entireio/cli/cmd/entire/cli/checkpoint"
17+
"github.com/entireio/cli/cmd/entire/cli/jsonutil"
1718
"github.com/entireio/cli/cmd/entire/cli/logging"
1819
"github.com/entireio/cli/cmd/entire/cli/paths"
1920

@@ -367,7 +368,7 @@ func updateGenerationTimestamps(repo *git.Repository, genBlobHash plumbing.Hash,
367368
gen.NewestCheckpointAt = newestFromLocal
368369
}
369370

370-
updatedData, err := json.Marshal(gen)
371+
updatedData, err := jsonutil.MarshalIndentWithNewline(gen, "", " ")
371372
if err != nil {
372373
return object.TreeEntry{}, fmt.Errorf("failed to marshal generation.json: %w", err)
373374
}

0 commit comments

Comments
 (0)