mirror of
https://github.com/restic/restic.git
synced 2026-11-05 06:49:21 +00:00
snapshots: Make --json output [] instead of null when no snapshots
This commit is contained in:
1 parent
a23d90d270
commit
137d20a06a
2 files changed
+11
-2
No files matched your search
@@ -0,0 +1,9 @@
|
||||
Bugfix: Make snapshots --json output [] instead of null when no snapshots
|
||||
|
||||
Restic previously output `null` instead of `[]` for the `--json snapshots`
|
||||
command, when there were no snapshots in the repository. This caused some
|
||||
minor problems when parsing the output, but is now fixed such that `[]` is
|
||||
output when the list of snapshots is empty.
|
||||
|
||||
https://github.com/restic/restic/issues/2979
|
||||
https://github.com/restic/restic/pull/2984
|
||||
Reference in new issue
Block a user