Skip to content

Commit 3f81691

Browse files
committed
fix: sort branch list by dataStateAt
1 parent 1d9cb96 commit 3f81691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/internal/provision/thinclones/zfs/branching.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func (m *Manager) ListAllBranches(poolList []string) ([]models.BranchEntity, err
247247
cmd := fmt.Sprintf(
248248
// Get all ZFS snapshots (-t) with options (-o) without output headers (-H).
249249
// Excluding snapshots without "dle:branch" property ("grep -v").
250-
`zfs list -H -t snapshot -o %s,name %s | grep -v "^-" | cat`, branchProp, poolFilter,
250+
`zfs list -H -t snapshot -S %s -o %s,name %s | grep -v "^-" | cat`, dataStateAtLabel, branchProp, poolFilter,
251251
)
252252

253253
out, err := m.runner.Run(cmd)

0 commit comments

Comments
 (0)