From 59b95c94aacac174e374048b7d11d2c0984a19e0 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 22 Jul 2022 13:15:42 +0800 Subject: [PATCH] fix journey tests after `gix` restructuring (#331) --- src/plumbing/options.rs | 1 + tests/journey/gix.sh | 889 +++++++++--------- .../verify/statistics-json-success | 0 .../commit-graph/verify/statistics-success | 0 .../broken-delete-pack-to-sink-failure | 0 ...en-delete-pack-to-sink-skip-checks-success | 0 ...jects-dir-skip-checks-success-tree-zlib-ng | 0 .../pack/explode/missing-objects-dir-fail | 0 .../pack/explode/to-sink-delete-pack-success | 0 .../pack/explode/to-sink-success | 0 .../pack/explode/with-objects-dir-success | 0 .../explode/with-objects-dir-success-tree | 0 .../create/no-output-dir-as-json-success | 0 .../pack/index/create/no-output-dir-success | 0 .../pack/index/create/output-dir-content | 0 .../create/output-dir-restore-as-json-success | 0 .../index/create/output-dir-restore-success | 0 .../pack/index/create/output-dir-success | 0 .../pack/receive/file-v-any-no-output | 0 .../pack/receive/file-v-any-no-output-json | 0 ...le-v-any-no-output-non-existing-single-ref | 0 .../receive/file-v-any-no-output-single-ref | 0 .../file-v-any-no-output-wanted-ref-p1 | 0 .../pack/receive/file-v-any-with-output | 0 .../pack/receive/ls-in-output-dir | 0 .../{ => no-repo}/pack/receive/repo-refs/HEAD | 0 .../pack/receive/repo-refs/refs/heads/dev | 0 .../pack/receive/repo-refs/refs/heads/main | 0 .../receive/repo-refs/refs/tags/annotated | 0 .../receive/repo-refs/refs/tags/unannotated | 0 .../{ => no-repo}/pack/verify/index-failure | 0 .../{ => no-repo}/pack/verify/index-success | 0 .../verify/index-with-statistics-json-success | 0 .../pack/verify/index-with-statistics-success | 0 .../verify/multi-index/fast-index-success | 0 .../pack/verify/multi-index/index-success | 0 .../index-with-statistics-json-success | 0 .../multi-index/index-with-statistics-success | 0 .../{ => no-repo}/pack/verify/success | 0 .../remote/ref-list}/file-v-any | 0 .../remote/ref-list}/file-v-any-json | 0 ...s-dir-skip-checks-success-tree-miniz-oxide | 54 -- ...ack receive-no-networking-in-small-failure | 6 - .../statistics-json-success | 8 - .../commit-graph-verify/statistics-success | 6 - .../broken-delete-pack-to-sink-failure | 5 - ...en-delete-pack-to-sink-skip-checks-success | 0 ...s-dir-skip-checks-success-tree-miniz-oxide | 54 -- ...jects-dir-skip-checks-success-tree-zlib-ng | 56 -- .../pack-explode/missing-objects-dir-fail | 1 - .../pack-explode/to-sink-delete-pack-success | 0 .../plumbing/pack-explode/to-sink-success | 0 .../pack-explode/with-objects-dir-success | 0 .../with-objects-dir-success-tree | 61 -- .../no-output-dir-as-json-success | 57 -- .../no-output-dir-success | 2 - .../pack-index-from-data/output-dir-content | 2 - .../output-dir-restore-as-json-success | 57 -- .../output-dir-restore-success | 2 - .../pack-index-from-data/output-dir-success | 2 - .../pack-receive/file-v-any-no-output | 8 - .../pack-receive/file-v-any-no-output-json | 45 - ...le-v-any-no-output-non-existing-single-ref | 5 - .../file-v-any-no-output-single-ref | 2 - .../file-v-any-no-output-wanted-ref-p1 | 4 - .../pack-receive/file-v-any-with-output | 8 - .../plumbing/pack-receive/ls-in-output-dir | 2 - ...ack-receive-no-networking-in-small-failure | 1 - .../plumbing/pack-receive/repo-refs/HEAD | 1 - .../pack-receive/repo-refs/refs/heads/dev | 1 - .../pack-receive/repo-refs/refs/heads/main | 1 - .../repo-refs/refs/tags/annotated | 1 - .../repo-refs/refs/tags/unannotated | 1 - .../plumbing/pack-verify/index-failure | 6 - .../plumbing/pack-verify/index-success | 0 .../index-with-statistics-json-success | 26 - .../pack-verify/index-with-statistics-success | 31 - .../plumbing/plumbing/pack-verify/success | 0 ...te-ref-list-no-networking-in-small-failure | 1 - .../plumbing/remote/ref-list/file-v-any | 5 - .../plumbing/remote/ref-list/file-v-any-json | 34 - ...te ref-list-no-networking-in-small-failure | 6 - 82 files changed, 447 insertions(+), 1005 deletions(-) rename tests/snapshots/plumbing/{ => no-repo}/commit-graph/verify/statistics-json-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/commit-graph/verify/statistics-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/explode/broken-delete-pack-to-sink-failure (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/explode/broken-delete-pack-to-sink-skip-checks-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/explode/broken-with-objects-dir-skip-checks-success-tree-zlib-ng (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/explode/missing-objects-dir-fail (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/explode/to-sink-delete-pack-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/explode/to-sink-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/explode/with-objects-dir-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/explode/with-objects-dir-success-tree (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/index/create/no-output-dir-as-json-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/index/create/no-output-dir-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/index/create/output-dir-content (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/index/create/output-dir-restore-as-json-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/index/create/output-dir-restore-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/index/create/output-dir-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/receive/file-v-any-no-output (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/receive/file-v-any-no-output-json (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/receive/file-v-any-no-output-non-existing-single-ref (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/receive/file-v-any-no-output-single-ref (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/receive/file-v-any-no-output-wanted-ref-p1 (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/receive/file-v-any-with-output (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/receive/ls-in-output-dir (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/receive/repo-refs/HEAD (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/receive/repo-refs/refs/heads/dev (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/receive/repo-refs/refs/heads/main (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/receive/repo-refs/refs/tags/annotated (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/receive/repo-refs/refs/tags/unannotated (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/verify/index-failure (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/verify/index-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/verify/index-with-statistics-json-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/verify/index-with-statistics-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/verify/multi-index/fast-index-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/verify/multi-index/index-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/verify/multi-index/index-with-statistics-json-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/verify/multi-index/index-with-statistics-success (100%) rename tests/snapshots/plumbing/{ => no-repo}/pack/verify/success (100%) rename tests/snapshots/plumbing/{plumbing/remote-ref-list => no-repo/remote/ref-list}/file-v-any (100%) rename tests/snapshots/plumbing/{plumbing/remote-ref-list => no-repo/remote/ref-list}/file-v-any-json (100%) delete mode 100644 tests/snapshots/plumbing/pack/explode/broken-with-objects-dir-skip-checks-success-tree-miniz-oxide delete mode 100644 tests/snapshots/plumbing/pack/receive/pack receive-no-networking-in-small-failure delete mode 100644 tests/snapshots/plumbing/plumbing/commit-graph-verify/statistics-json-success delete mode 100644 tests/snapshots/plumbing/plumbing/commit-graph-verify/statistics-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-explode/broken-delete-pack-to-sink-failure delete mode 100644 tests/snapshots/plumbing/plumbing/pack-explode/broken-delete-pack-to-sink-skip-checks-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-explode/broken-with-objects-dir-skip-checks-success-tree-miniz-oxide delete mode 100644 tests/snapshots/plumbing/plumbing/pack-explode/broken-with-objects-dir-skip-checks-success-tree-zlib-ng delete mode 100644 tests/snapshots/plumbing/plumbing/pack-explode/missing-objects-dir-fail delete mode 100644 tests/snapshots/plumbing/plumbing/pack-explode/to-sink-delete-pack-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-explode/to-sink-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-explode/with-objects-dir-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-explode/with-objects-dir-success-tree delete mode 100644 tests/snapshots/plumbing/plumbing/pack-index-from-data/no-output-dir-as-json-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-index-from-data/no-output-dir-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-content delete mode 100644 tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-restore-as-json-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-restore-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-json delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-non-existing-single-ref delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-single-ref delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-wanted-ref-p1 delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-with-output delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/ls-in-output-dir delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/pack-receive-no-networking-in-small-failure delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/HEAD delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/heads/dev delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/heads/main delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/tags/annotated delete mode 100644 tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/tags/unannotated delete mode 100644 tests/snapshots/plumbing/plumbing/pack-verify/index-failure delete mode 100644 tests/snapshots/plumbing/plumbing/pack-verify/index-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-verify/index-with-statistics-json-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-verify/index-with-statistics-success delete mode 100644 tests/snapshots/plumbing/plumbing/pack-verify/success delete mode 100644 tests/snapshots/plumbing/plumbing/remote-ref-list/remote-ref-list-no-networking-in-small-failure delete mode 100644 tests/snapshots/plumbing/remote/ref-list/file-v-any delete mode 100644 tests/snapshots/plumbing/remote/ref-list/file-v-any-json delete mode 100644 tests/snapshots/plumbing/remote/ref-list/remote ref-list-no-networking-in-small-failure diff --git a/src/plumbing/options.rs b/src/plumbing/options.rs index abed5255313..58dde701425 100644 --- a/src/plumbing/options.rs +++ b/src/plumbing/options.rs @@ -189,6 +189,7 @@ pub mod revision { /// pub mod free { #[derive(Debug, clap::Subcommand)] + #[clap(visible_alias = "no-repo")] pub enum Subcommands { /// Subcommands for interacting with git remote server. #[clap(subcommand)] diff --git a/tests/journey/gix.sh b/tests/journey/gix.sh index ddc4475098a..4b1b902e149 100644 --- a/tests/journey/gix.sh +++ b/tests/journey/gix.sh @@ -46,8 +46,8 @@ title "git-tempfile crate" ) ) -title "gix repository" -(when "running 'repository'" +title "gix (with repository)" +(with "a git repository" snapshot="$snapshot/repository" (small-repo-in-sandbox (with "the 'verify' sub-command" @@ -55,14 +55,14 @@ title "gix repository" (with 'human output format' it "generates correct output" && { WITH_SNAPSHOT="$snapshot/success-format-human" \ - expect_run $SUCCESSFULLY "$exe_plumbing" --format human repo verify -s + expect_run $SUCCESSFULLY "$exe_plumbing" --format human verify -s } ) if test "$kind" = "max"; then (with "--format json" it "generates the correct output in JSON format" && { WITH_SNAPSHOT="$snapshot/success-format-json" \ - expect_run $SUCCESSFULLY "$exe_plumbing" --format json repository verify --statistics + expect_run $SUCCESSFULLY "$exe_plumbing" --format json verify --statistics } ) fi @@ -70,570 +70,573 @@ title "gix repository" ) ) -title "gix pack" -(when "running 'pack'" - snapshot="$snapshot/pack" +(with "gix free" + snapshot="$snapshot/no-repo" + title "gix free pack" + (when "running 'pack'" + snapshot="$snapshot/pack" - title "gix pack receive" - (with "the 'receive' sub-command" - snapshot="$snapshot/receive" - (small-repo-in-sandbox - if [[ "$kind" != 'small' ]]; then + title "gix free pack receive" + (with "the 'receive' sub-command" + snapshot="$snapshot/receive" + (small-repo-in-sandbox + if [[ "$kind" != 'small' ]]; then - if [[ "$kind" != 'async' ]]; then - (with "file:// protocol" - (with "version 1" - (with "NO output directory" - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any-no-output" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack receive -p 1 .git - } - ) - (with "output directory" - mkdir out - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any-with-output" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack receive -p 1 .git out/ - } - it "creates an index and a pack in the output directory" && { - WITH_SNAPSHOT="$snapshot/ls-in-output-dir" \ - expect_run $SUCCESSFULLY ls out/ - } - (with "--write-refs set" + if [[ "$kind" != 'async' ]]; then + (with "file:// protocol" + (with "version 1" + (with "NO output directory" + it "generates the correct output" && { + WITH_SNAPSHOT="$snapshot/file-v-any-no-output" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack receive -p 1 .git + } + ) + (with "output directory" + mkdir out it "generates the correct output" && { WITH_SNAPSHOT="$snapshot/file-v-any-with-output" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack receive -p 1 --refs-directory out/all-refs .git out/ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack receive -p 1 .git out/ } - it "writes references into the refs folder of the output directory" && { - expect_snapshot "$snapshot/repo-refs" out/all-refs + it "creates an index and a pack in the output directory" && { + WITH_SNAPSHOT="$snapshot/ls-in-output-dir" \ + expect_run $SUCCESSFULLY ls out/ } + (with "--write-refs set" + it "generates the correct output" && { + WITH_SNAPSHOT="$snapshot/file-v-any-with-output" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack receive -p 1 --refs-directory out/all-refs .git out/ + } + it "writes references into the refs folder of the output directory" && { + expect_snapshot "$snapshot/repo-refs" out/all-refs + } + ) + rm -Rf out ) - rm -Rf out - ) - if test "$kind" = "max"; then - (with "--format json" - it "generates the correct output in JSON format" && { - WITH_SNAPSHOT="$snapshot/file-v-any-no-output-json" \ - expect_run $SUCCESSFULLY "$exe_plumbing" --format json pack receive --protocol 1 .git - } - ) - fi - ) - (with "version 2" - (with "NO output directory" - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any-no-output" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack receive -p 2 .git - } - ) - (with "output directory" - mkdir out/ - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any-with-output" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack receive .git out/ - } - it "creates an index and a pack in the output directory" && { - WITH_SNAPSHOT="$snapshot/ls-in-output-dir" \ - expect_run $SUCCESSFULLY ls out/ - } - rm -Rf out - ) - if test "$kind" = "max"; then - (with "--format json" - it "generates the correct output in JSON format" && { - WITH_SNAPSHOT="$snapshot/file-v-any-no-output-json" \ - expect_run $SUCCESSFULLY "$exe_plumbing" --format json pack receive --protocol 2 .git - } + if test "$kind" = "max"; then + (with "--format json" + it "generates the correct output in JSON format" && { + WITH_SNAPSHOT="$snapshot/file-v-any-no-output-json" \ + expect_run $SUCCESSFULLY "$exe_plumbing" --format json free pack receive --protocol 1 .git + } + ) + fi ) - fi - ) - ) - fi - (with "git:// protocol" - launch-git-daemon - (with "version 1" - (with "NO output directory" - (with "no wanted refs" + (with "version 2" + (with "NO output directory" it "generates the correct output" && { WITH_SNAPSHOT="$snapshot/file-v-any-no-output" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack receive -p 1 git://localhost/ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack receive -p 2 .git } ) - (with "wanted refs" + (with "output directory" + mkdir out/ it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any-no-output-wanted-ref-p1" \ - expect_run $WITH_FAILURE "$exe_plumbing" pack receive -p 1 git://localhost/ -r =refs/heads/main + WITH_SNAPSHOT="$snapshot/file-v-any-with-output" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack receive .git out/ + } + it "creates an index and a pack in the output directory" && { + WITH_SNAPSHOT="$snapshot/ls-in-output-dir" \ + expect_run $SUCCESSFULLY ls out/ } + rm -Rf out ) - ) - (with "output directory" - mkdir out - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any-with-output" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack receive -p 1 git://localhost/ out/ - } + if test "$kind" = "max"; then + (with "--format json" + it "generates the correct output in JSON format" && { + WITH_SNAPSHOT="$snapshot/file-v-any-no-output-json" \ + expect_run $SUCCESSFULLY "$exe_plumbing" --format json free pack receive --protocol 2 .git + } + ) + fi ) ) - (with "version 2" - (with "NO output directory" - (with "NO wanted refs" - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any-no-output" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack receive -p 2 git://localhost/ - } + fi + (with "git:// protocol" + launch-git-daemon + (with "version 1" + (with "NO output directory" + (with "no wanted refs" + it "generates the correct output" && { + WITH_SNAPSHOT="$snapshot/file-v-any-no-output" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack receive -p 1 git://localhost/ + } + ) + (with "wanted refs" + it "generates the correct output" && { + WITH_SNAPSHOT="$snapshot/file-v-any-no-output-wanted-ref-p1" \ + expect_run $WITH_FAILURE "$exe_plumbing" free pack receive -p 1 git://localhost/ -r =refs/heads/main + } + ) ) - (with "wanted refs" + (with "output directory" + mkdir out it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any-no-output-single-ref" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack receive -p 2 git://localhost/ -r refs/heads/main + WITH_SNAPSHOT="$snapshot/file-v-any-with-output" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack receive -p 1 git://localhost/ out/ } - (when "ref does not exist" - it "fails with a detailed error message including what the server said" && { - WITH_SNAPSHOT="$snapshot/file-v-any-no-output-non-existing-single-ref" \ - expect_run $WITH_FAILURE "$exe_plumbing" pack receive -p 2 git://localhost/ -r refs/heads/does-not-exist + ) + ) + (with "version 2" + (with "NO output directory" + (with "NO wanted refs" + it "generates the correct output" && { + WITH_SNAPSHOT="$snapshot/file-v-any-no-output" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack receive -p 2 git://localhost/ + } + ) + (with "wanted refs" + it "generates the correct output" && { + WITH_SNAPSHOT="$snapshot/file-v-any-no-output-single-ref" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack receive -p 2 git://localhost/ -r refs/heads/main } + (when "ref does not exist" + it "fails with a detailed error message including what the server said" && { + WITH_SNAPSHOT="$snapshot/file-v-any-no-output-non-existing-single-ref" \ + expect_run $WITH_FAILURE "$exe_plumbing" free pack receive -p 2 git://localhost/ -r refs/heads/does-not-exist + } + ) ) ) - ) - (with "output directory" - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any-with-output" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack receive git://localhost/ out/ - } + (with "output directory" + it "generates the correct output" && { + WITH_SNAPSHOT="$snapshot/file-v-any-with-output" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack receive git://localhost/ out/ + } + ) ) ) - ) - (on_ci - if test "$kind" = "max"; then - (with "https:// protocol" - (with "version 1" - it "works" && { - expect_run $SUCCESSFULLY "$exe_plumbing" pack receive -p 1 https://github.com/byron/gitoxide - } - ) - (with "version 2" - it "works" && { - expect_run $SUCCESSFULLY "$exe_plumbing" pack receive -p 2 https://github.com/byron/gitoxide - } + (on_ci + if test "$kind" = "max"; then + (with "https:// protocol" + (with "version 1" + it "works" && { + expect_run $SUCCESSFULLY "$exe_plumbing" free pack receive -p 1 https://github.com/byron/gitoxide + } + ) + (with "version 2" + it "works" && { + expect_run $SUCCESSFULLY "$exe_plumbing" free pack receive -p 2 https://github.com/byron/gitoxide + } + ) ) + fi ) + elif [[ "$kind" = "small" ]]; then + it "fails as the CLI doesn't have networking in 'small' mode" && { + WITH_SNAPSHOT="$snapshot/pack receive-no-networking-in-small-failure" \ + expect_run 2 "$exe_plumbing" free pack receive -p 1 .git + } fi ) - elif [[ "$kind" = "small" ]]; then - it "fails as the CLI doesn't have networking in 'small' mode" && { - WITH_SNAPSHOT="$snapshot/pack receive-no-networking-in-small-failure" \ - expect_run 2 "$exe_plumbing" pack receive -p 1 .git - } - fi ) - ) - (with "the 'index' sub-command" - snapshot="$snapshot/index" - title "gix pack index create" - (with "the 'create' sub-command" - snapshot="$snapshot/create" - PACK_FILE="$fixtures/packs/pack-11fdfa9e156ab73caae3b6da867192221f2089c2.pack" - (with "a valid and complete pack file" - (with "NO output directory specified" - (with "pack file passed as file" - it "generates an index into a sink and outputs pack and index information" && { - WITH_SNAPSHOT="$snapshot/no-output-dir-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack index create -p "$PACK_FILE" - } - ) - (with "pack file passed from stdin" - it "generates an index into a sink and outputs pack and index information" && { - WITH_SNAPSHOT="$snapshot/no-output-dir-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack index create < "$PACK_FILE" - } - if test "$kind" = "max"; then - (with "--format json" - it "generates the index into a sink and outputs information as JSON" && { - WITH_SNAPSHOT="$snapshot/no-output-dir-as-json-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" --format json pack index create < "$PACK_FILE" + (with "the 'index' sub-command" + snapshot="$snapshot/index" + title "gix free pack index create" + (with "the 'create' sub-command" + snapshot="$snapshot/create" + PACK_FILE="$fixtures/packs/pack-11fdfa9e156ab73caae3b6da867192221f2089c2.pack" + (with "a valid and complete pack file" + (with "NO output directory specified" + (with "pack file passed as file" + it "generates an index into a sink and outputs pack and index information" && { + WITH_SNAPSHOT="$snapshot/no-output-dir-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack index create -p "$PACK_FILE" } ) - fi + (with "pack file passed from stdin" + it "generates an index into a sink and outputs pack and index information" && { + WITH_SNAPSHOT="$snapshot/no-output-dir-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack index create < "$PACK_FILE" + } + if test "$kind" = "max"; then + (with "--format json" + it "generates the index into a sink and outputs information as JSON" && { + WITH_SNAPSHOT="$snapshot/no-output-dir-as-json-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" --format json free pack index create < "$PACK_FILE" + } + ) + fi + ) ) - ) - (sandbox - (with "with an output directory specified" - it "generates an index and outputs information" && { - WITH_SNAPSHOT="$snapshot/output-dir-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack index create -p "$PACK_FILE" "$PWD" - } - it "writes the index and pack into the directory (they have the same names, different suffixes)" && { - WITH_SNAPSHOT="$snapshot/output-dir-content" \ - expect_run $SUCCESSFULLY ls - } + (sandbox + (with "with an output directory specified" + it "generates an index and outputs information" && { + WITH_SNAPSHOT="$snapshot/output-dir-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack index create -p "$PACK_FILE" "$PWD" + } + it "writes the index and pack into the directory (they have the same names, different suffixes)" && { + WITH_SNAPSHOT="$snapshot/output-dir-content" \ + expect_run $SUCCESSFULLY ls + } + ) ) ) - ) - (with "'restore' iteration mode" - (sandbox - cp "${PACK_FILE}" . - PACK_FILE="${PACK_FILE##*/}" - "$jtt" mess-in-the-middle "${PACK_FILE}" - - it "generates an index and outputs information (instead of failing)" && { - WITH_SNAPSHOT="$snapshot/output-dir-restore-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack index create -i restore -p "$PACK_FILE" "$PWD" - } + (with "'restore' iteration mode" + (sandbox + cp "${PACK_FILE}" . + PACK_FILE="${PACK_FILE##*/}" + "$jtt" mess-in-the-middle "${PACK_FILE}" - if test "$kind" = "max"; then - (with "--format json and the very same output directory" - it "generates the index, overwriting existing files, and outputs information as JSON" && { - WITH_SNAPSHOT="$snapshot/output-dir-restore-as-json-success" \ - SNAPSHOT_FILTER=remove-paths \ - expect_run $SUCCESSFULLY "$exe_plumbing" --format json pack index create -i restore $PWD < "$PACK_FILE" + it "generates an index and outputs information (instead of failing)" && { + WITH_SNAPSHOT="$snapshot/output-dir-restore-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack index create -i restore -p "$PACK_FILE" "$PWD" } - ) - fi - ) - ) - ) - ) - title "gix pack multi-index" - (with "the 'multi-index' sub-command" - snapshot="$snapshot/multi-index" - title "gix pack multi-index create" - (with "the 'create' sub-command" - snapshot="$snapshot/create" - (with 'multiple pack indices' - (sandbox - it "creates a multi-index successfully" && { - expect_run $SUCCESSFULLY "$exe_plumbing" pack multi-index -i multi-pack-index create $fixtures/packs/pack-*.idx + if test "$kind" = "max"; then + (with "--format json and the very same output directory" + it "generates the index, overwriting existing files, and outputs information as JSON" && { + WITH_SNAPSHOT="$snapshot/output-dir-restore-as-json-success" \ + SNAPSHOT_FILTER=remove-paths \ + expect_run $SUCCESSFULLY "$exe_plumbing" --format json free pack index create -i restore $PWD < "$PACK_FILE" } ) + fi ) + ) ) - ) - - title "gix pack explode" - (with "the 'explode' sub-command" - snapshot="$snapshot/explode" - PACK_FILE="$fixtures/packs/pack-11fdfa9e156ab73caae3b6da867192221f2089c2" - (with "no objects directory specified" - it "explodes the pack successfully and with desired output" && { - WITH_SNAPSHOT="$snapshot/to-sink-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack explode "${PACK_FILE}.idx" - } - - (when "using the --delete-pack flag" - (sandbox - (with "a valid pack" - cp "${PACK_FILE}".idx "${PACK_FILE}".pack . - PACK_FILE="${PACK_FILE##*/}" - it "explodes the pack successfully and deletes the original pack and index" && { - WITH_SNAPSHOT="$snapshot/to-sink-delete-pack-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack explode --check skip-file-checksum --delete-pack "${PACK_FILE}.pack" - } - it "removes the original files" && { - expect_run $WITH_FAILURE test -e "${PACK_FILE}".pack - expect_run $WITH_FAILURE test -e "${PACK_FILE}".idx - } - ) - (with "a pack file that is invalid somewhere" - cp ${PACK_FILE}.idx ${PACK_FILE}.pack . - PACK_FILE="${PACK_FILE##*/}" - "$jtt" mess-in-the-middle "${PACK_FILE}".pack - - (with "and all safety checks" - it "does not explode the file at all" && { - WITH_SNAPSHOT="$snapshot/broken-delete-pack-to-sink-failure" \ - expect_run $WITH_FAILURE "$exe_plumbing" pack explode --sink-compress --check all --delete-pack "${PACK_FILE}.pack" - } + ) - it "did not touch index or pack file" && { - expect_exists "${PACK_FILE}".pack - expect_exists "${PACK_FILE}".idx - } + title "gix free pack multi-index" + (with "the 'multi-index' sub-command" + snapshot="$snapshot/multi-index" + title "gix free pack multi-index create" + (with "the 'create' sub-command" + snapshot="$snapshot/create" + (with 'multiple pack indices' + (sandbox + it "creates a multi-index successfully" && { + expect_run $SUCCESSFULLY "$exe_plumbing" free pack multi-index -i multi-pack-index create $fixtures/packs/pack-*.idx + } + ) ) + ) + ) - (with "and no safety checks at all (and an output directory)" - it "does explode the file" && { - WITH_SNAPSHOT="$snapshot/broken-delete-pack-to-sink-skip-checks-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack explode --verify --check skip-file-and-object-checksum-and-no-abort-on-decode \ - --delete-pack "${PACK_FILE}.pack" . - } + title "gix free pack explode" + (with "the 'explode' sub-command" + snapshot="$snapshot/explode" + PACK_FILE="$fixtures/packs/pack-11fdfa9e156ab73caae3b6da867192221f2089c2" + (with "no objects directory specified" + it "explodes the pack successfully and with desired output" && { + WITH_SNAPSHOT="$snapshot/to-sink-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" no-repo pack explode "${PACK_FILE}.idx" + } + (when "using the --delete-pack flag" + (sandbox + (with "a valid pack" + cp "${PACK_FILE}".idx "${PACK_FILE}".pack . + PACK_FILE="${PACK_FILE##*/}" + it "explodes the pack successfully and deletes the original pack and index" && { + WITH_SNAPSHOT="$snapshot/to-sink-delete-pack-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack explode --check skip-file-checksum --delete-pack "${PACK_FILE}.pack" + } it "removes the original files" && { expect_run $WITH_FAILURE test -e "${PACK_FILE}".pack expect_run $WITH_FAILURE test -e "${PACK_FILE}".idx } + ) + (with "a pack file that is invalid somewhere" + cp ${PACK_FILE}.idx ${PACK_FILE}.pack . + PACK_FILE="${PACK_FILE##*/}" + "$jtt" mess-in-the-middle "${PACK_FILE}".pack + + (with "and all safety checks" + it "does not explode the file at all" && { + WITH_SNAPSHOT="$snapshot/broken-delete-pack-to-sink-failure" \ + expect_run $WITH_FAILURE "$exe_plumbing" free pack explode --sink-compress --check all --delete-pack "${PACK_FILE}.pack" + } - (with_program tree + it "did not touch index or pack file" && { + expect_exists "${PACK_FILE}".pack + expect_exists "${PACK_FILE}".idx + } + ) + + (with "and no safety checks at all (and an output directory)" + it "does explode the file" && { + WITH_SNAPSHOT="$snapshot/broken-delete-pack-to-sink-skip-checks-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack explode --verify --check skip-file-and-object-checksum-and-no-abort-on-decode \ + --delete-pack "${PACK_FILE}.pack" . + } - if test "$kind" = "small"; then - suffix=miniz-oxide - else - suffix=zlib-ng - fi - it "creates all pack objects, but the broken ones" && { - WITH_SNAPSHOT="$snapshot/broken-with-objects-dir-skip-checks-success-tree-$suffix" \ - expect_run $SUCCESSFULLY tree + it "removes the original files" && { + expect_run $WITH_FAILURE test -e "${PACK_FILE}".pack + expect_run $WITH_FAILURE test -e "${PACK_FILE}".idx } + + (with_program tree + + if test "$kind" = "small"; then + suffix=miniz-oxide + else + suffix=zlib-ng + fi + it "creates all pack objects, but the broken ones" && { + WITH_SNAPSHOT="$snapshot/broken-with-objects-dir-skip-checks-success-tree-$suffix" \ + expect_run $SUCCESSFULLY tree + } + ) ) ) ) ) ) - ) - (with "a non-existing directory specified" - it "fails with a helpful error message" && { - WITH_SNAPSHOT="$snapshot/missing-objects-dir-fail" \ - expect_run $WITH_FAILURE "$exe_plumbing" pack explode -c skip-file-and-object-checksum "${PACK_FILE}.idx" does-not-exist - } - ) - (with "an existing directory specified" - (sandbox - it "succeeds" && { - WITH_SNAPSHOT="$snapshot/with-objects-dir-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack explode -c skip-file-and-object-checksum-and-no-abort-on-decode \ - "${PACK_FILE}.pack" . + (with "a non-existing directory specified" + it "fails with a helpful error message" && { + WITH_SNAPSHOT="$snapshot/missing-objects-dir-fail" \ + expect_run $WITH_FAILURE "$exe_plumbing" free pack explode -c skip-file-and-object-checksum "${PACK_FILE}.idx" does-not-exist } - - (with_program tree - it "creates all pack objects" && { - WITH_SNAPSHOT="$snapshot/with-objects-dir-success-tree" \ - expect_run $SUCCESSFULLY tree + ) + (with "an existing directory specified" + (sandbox + it "succeeds" && { + WITH_SNAPSHOT="$snapshot/with-objects-dir-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack explode -c skip-file-and-object-checksum-and-no-abort-on-decode \ + "${PACK_FILE}.pack" . } + + (with_program tree + it "creates all pack objects" && { + WITH_SNAPSHOT="$snapshot/with-objects-dir-success-tree" \ + expect_run $SUCCESSFULLY tree + } + ) ) ) ) - ) - - title "gix pack verify" - (with "the 'verify' sub-command" - snapshot="$snapshot/verify" - (with "a valid pack file" - PACK_FILE="$fixtures/packs/pack-11fdfa9e156ab73caae3b6da867192221f2089c2.pack" - it "verifies the pack successfully and with desired output" && { - WITH_SNAPSHOT="$snapshot/success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack verify "$PACK_FILE" - } - ) - (with "a valid pack INDEX file" - MULTI_PACK_INDEX="$fixtures/packs/pack-11fdfa9e156ab73caae3b6da867192221f2089c2.idx" - (with "no statistics" - it "verifies the pack index successfully and with desired output" && { - WITH_SNAPSHOT="$snapshot/index-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack verify "$MULTI_PACK_INDEX" - } - ) - (with "statistics" - it "verifies the pack index successfully and with desired output" && { - WITH_SNAPSHOT="$snapshot/index-with-statistics-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack verify --statistics "$MULTI_PACK_INDEX" - } - (with "and the less-memory algorithm" - it "verifies the pack index successfully and with desired output" && { - WITH_SNAPSHOT="$snapshot/index-with-statistics-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack verify --algorithm less-memory --statistics "$MULTI_PACK_INDEX" - } - ) - ) - (with "decode" - it "verifies the pack index successfully and with desired output, and decodes all objects" && { - WITH_SNAPSHOT="$snapshot/index-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack verify --algorithm less-memory --decode "$MULTI_PACK_INDEX" - } - ) - (with "re-encode" - it "verifies the pack index successfully and with desired output, and re-encodes all objects" && { - WITH_SNAPSHOT="$snapshot/index-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack verify --algorithm less-time --re-encode "$MULTI_PACK_INDEX" - } - ) - if test "$kind" = "max"; then - (with "statistics (JSON)" - it "verifies the pack index successfully and with desired output" && { - WITH_SNAPSHOT="$snapshot/index-with-statistics-json-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" --format json --threads 1 pack verify --statistics "$MULTI_PACK_INDEX" + title "gix free pack verify" + (with "the 'verify' sub-command" + snapshot="$snapshot/verify" + (with "a valid pack file" + PACK_FILE="$fixtures/packs/pack-11fdfa9e156ab73caae3b6da867192221f2089c2.pack" + it "verifies the pack successfully and with desired output" && { + WITH_SNAPSHOT="$snapshot/success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack verify "$PACK_FILE" } ) - fi - ) - (with "a valid multi-pack index" - snapshot="$snapshot/multi-index" - (sandbox - MULTI_PACK_INDEX=multi-pack-index - cp $fixtures/packs/pack-* . - $exe_plumbing pack multi-index -i $MULTI_PACK_INDEX create *.idx - - (when "using fast validation via 'pack multi-index verify'" - it "verifies the pack index successfully and with desired output" && { - WITH_SNAPSHOT="$snapshot/fast-index-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack multi-index -i "$MULTI_PACK_INDEX" verify - } - ) - + (with "a valid pack INDEX file" + MULTI_PACK_INDEX="$fixtures/packs/pack-11fdfa9e156ab73caae3b6da867192221f2089c2.idx" (with "no statistics" it "verifies the pack index successfully and with desired output" && { WITH_SNAPSHOT="$snapshot/index-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack verify "$MULTI_PACK_INDEX" + expect_run $SUCCESSFULLY "$exe_plumbing" free pack verify "$MULTI_PACK_INDEX" } ) (with "statistics" it "verifies the pack index successfully and with desired output" && { WITH_SNAPSHOT="$snapshot/index-with-statistics-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack verify --statistics "$MULTI_PACK_INDEX" + expect_run $SUCCESSFULLY "$exe_plumbing" free pack verify --statistics "$MULTI_PACK_INDEX" } (with "and the less-memory algorithm" it "verifies the pack index successfully and with desired output" && { WITH_SNAPSHOT="$snapshot/index-with-statistics-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack verify --algorithm less-memory --statistics "$MULTI_PACK_INDEX" + expect_run $SUCCESSFULLY "$exe_plumbing" free pack verify --algorithm less-memory --statistics "$MULTI_PACK_INDEX" } ) ) (with "decode" it "verifies the pack index successfully and with desired output, and decodes all objects" && { WITH_SNAPSHOT="$snapshot/index-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack verify --algorithm less-memory --decode "$MULTI_PACK_INDEX" + expect_run $SUCCESSFULLY "$exe_plumbing" free pack verify --algorithm less-memory --decode "$MULTI_PACK_INDEX" } ) (with "re-encode" it "verifies the pack index successfully and with desired output, and re-encodes all objects" && { WITH_SNAPSHOT="$snapshot/index-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" pack verify --algorithm less-time --re-encode "$MULTI_PACK_INDEX" + expect_run $SUCCESSFULLY "$exe_plumbing" free pack verify --algorithm less-time --re-encode "$MULTI_PACK_INDEX" } ) if test "$kind" = "max"; then (with "statistics (JSON)" it "verifies the pack index successfully and with desired output" && { WITH_SNAPSHOT="$snapshot/index-with-statistics-json-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" --format json --threads 1 pack verify --statistics "$MULTI_PACK_INDEX" + expect_run $SUCCESSFULLY "$exe_plumbing" --format json --threads 1 free pack verify --statistics "$MULTI_PACK_INDEX" } ) fi ) - ) - (sandbox - (with "an INvalid pack INDEX file" - MULTI_PACK_INDEX="$fixtures/packs/pack-11fdfa9e156ab73caae3b6da867192221f2089c2.idx" - cp $MULTI_PACK_INDEX index.idx - echo $'\0' >> index.idx - it "fails to verify the pack index and with desired output" && { - WITH_SNAPSHOT="$snapshot/index-failure" \ - expect_run $WITH_FAILURE "$exe_plumbing" pack verify index.idx - } - ) - ) - ) -) + (with "a valid multi-pack index" + snapshot="$snapshot/multi-index" + (sandbox + MULTI_PACK_INDEX=multi-pack-index + cp $fixtures/packs/pack-* . + $exe_plumbing free pack multi-index -i $MULTI_PACK_INDEX create *.idx -title "gix remote" -(when "running 'remote'" - snapshot="$snapshot/remote" - title "gix remote ref-list" - (with "the 'ref-list' subcommand" - snapshot="$snapshot/ref-list" - (small-repo-in-sandbox - if [[ "$kind" != "small" ]]; then - - if [[ "$kind" != "async" ]]; then - (with "file:// protocol" - (with "version 1" - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any" \ - expect_run $SUCCESSFULLY "$exe_plumbing" remote ref-list -p 1 .git - } - ) - (with "version 2" - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any" \ - expect_run $SUCCESSFULLY "$exe_plumbing" remote ref-list --protocol 2 "$PWD/.git" - } + (when "using fast validation via 'pack multi-index verify'" + it "verifies the pack index successfully and with desired output" && { + WITH_SNAPSHOT="$snapshot/fast-index-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack multi-index -i "$MULTI_PACK_INDEX" verify + } + ) + + (with "no statistics" + it "verifies the pack index successfully and with desired output" && { + WITH_SNAPSHOT="$snapshot/index-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack verify "$MULTI_PACK_INDEX" + } + ) + (with "statistics" + it "verifies the pack index successfully and with desired output" && { + WITH_SNAPSHOT="$snapshot/index-with-statistics-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack verify --statistics "$MULTI_PACK_INDEX" + } + + (with "and the less-memory algorithm" + it "verifies the pack index successfully and with desired output" && { + WITH_SNAPSHOT="$snapshot/index-with-statistics-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack verify --algorithm less-memory --statistics "$MULTI_PACK_INDEX" + } + ) + ) + (with "decode" + it "verifies the pack index successfully and with desired output, and decodes all objects" && { + WITH_SNAPSHOT="$snapshot/index-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack verify --algorithm less-memory --decode "$MULTI_PACK_INDEX" + } + ) + (with "re-encode" + it "verifies the pack index successfully and with desired output, and re-encodes all objects" && { + WITH_SNAPSHOT="$snapshot/index-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free pack verify --algorithm less-time --re-encode "$MULTI_PACK_INDEX" + } + ) + if test "$kind" = "max"; then + (with "statistics (JSON)" + it "verifies the pack index successfully and with desired output" && { + WITH_SNAPSHOT="$snapshot/index-with-statistics-json-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" --format json --threads 1 free pack verify --statistics "$MULTI_PACK_INDEX" + } + ) + fi ) - if test "$kind" = "max"; then - (with "--format json" - it "generates the correct output in JSON format" && { - WITH_SNAPSHOT="$snapshot/file-v-any-json" \ - expect_run $SUCCESSFULLY "$exe_plumbing" --format json remote ref-list .git + ) + (sandbox + (with "an INvalid pack INDEX file" + MULTI_PACK_INDEX="$fixtures/packs/pack-11fdfa9e156ab73caae3b6da867192221f2089c2.idx" + cp $MULTI_PACK_INDEX index.idx + echo $'\0' >> index.idx + it "fails to verify the pack index and with desired output" && { + WITH_SNAPSHOT="$snapshot/index-failure" \ + expect_run $WITH_FAILURE "$exe_plumbing" free pack verify index.idx } ) - fi ) - fi + ) + ) - (with "git:// protocol" - launch-git-daemon - (with "version 1" - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any" \ - expect_run $SUCCESSFULLY "$exe_plumbing" remote ref-list -p 1 git://localhost/ - } - ) - (with "version 2" - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/file-v-any" \ - expect_run $SUCCESSFULLY "$exe_plumbing" remote ref-list -p 2 git://localhost/ - } + title "gix free remote" + (when "running 'remote'" + snapshot="$snapshot/remote" + title "gix remote ref-list" + (with "the 'ref-list' subcommand" + snapshot="$snapshot/ref-list" + (small-repo-in-sandbox + if [[ "$kind" != "small" ]]; then + + if [[ "$kind" != "async" ]]; then + (with "file:// protocol" + (with "version 1" + it "generates the correct output" && { + WITH_SNAPSHOT="$snapshot/file-v-any" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free remote ref-list -p 1 .git + } + ) + (with "version 2" + it "generates the correct output" && { + WITH_SNAPSHOT="$snapshot/file-v-any" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free remote ref-list --protocol 2 "$PWD/.git" + } + ) + if test "$kind" = "max"; then + (with "--format json" + it "generates the correct output in JSON format" && { + WITH_SNAPSHOT="$snapshot/file-v-any-json" \ + expect_run $SUCCESSFULLY "$exe_plumbing" --format json free remote ref-list .git + } + ) + fi ) - ) - if [[ "$kind" == "small" ]]; then - (with "https:// protocol (in small builds)" - it "fails as http is not compiled in" && { - WITH_SNAPSHOT="$snapshot/fail-http-in-small" \ - expect_run $WITH_FAILURE "$exe_plumbing" remote ref-list -p 1 https://github.com/byron/gitoxide - } - ) - fi - (on_ci - if [[ "$kind" = "max" ]]; then - (with "https:// protocol" + fi + + (with "git:// protocol" + launch-git-daemon (with "version 1" it "generates the correct output" && { - expect_run $SUCCESSFULLY "$exe_plumbing" remote ref-list -p 1 https://github.com/byron/gitoxide + WITH_SNAPSHOT="$snapshot/file-v-any" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free remote ref-list -p 1 git://localhost/ } ) (with "version 2" it "generates the correct output" && { - expect_run $SUCCESSFULLY "$exe_plumbing" remote ref-list -p 2 https://github.com/byron/gitoxide + WITH_SNAPSHOT="$snapshot/file-v-any" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free remote ref-list -p 2 git://localhost/ } ) ) + if [[ "$kind" == "small" ]]; then + (with "https:// protocol (in small builds)" + it "fails as http is not compiled in" && { + WITH_SNAPSHOT="$snapshot/fail-http-in-small" \ + expect_run $WITH_FAILURE "$exe_plumbing" free remote ref-list -p 1 https://github.com/byron/gitoxide + } + ) + fi + (on_ci + if [[ "$kind" = "max" ]]; then + (with "https:// protocol" + (with "version 1" + it "generates the correct output" && { + expect_run $SUCCESSFULLY "$exe_plumbing" free remote ref-list -p 1 https://github.com/byron/gitoxide + } + ) + (with "version 2" + it "generates the correct output" && { + expect_run $SUCCESSFULLY "$exe_plumbing" free remote ref-list -p 2 https://github.com/byron/gitoxide + } + ) + ) + fi + ) + else + it "fails as the CLI doesn't include networking in 'small' mode" && { + WITH_SNAPSHOT="$snapshot/remote ref-list-no-networking-in-small-failure" \ + expect_run 2 "$exe_plumbing" free remote ref-list -p 1 .git + } fi ) - else - it "fails as the CLI doesn't include networking in 'small' mode" && { - WITH_SNAPSHOT="$snapshot/remote ref-list-no-networking-in-small-failure" \ - expect_run 2 "$exe_plumbing" remote ref-list -p 1 .git - } - fi ) ) -) -title "gix commit-graph" -(when "running 'commit-graph'" - snapshot="$snapshot/commit-graph" - title "gix commit-graph verify" - (with "the 'verify' sub-command" - snapshot="$snapshot/verify" + title "gix free commit-graph" + (when "running 'commit-graph'" + snapshot="$snapshot/commit-graph" + title "gix free commit-graph verify" + (with "the 'verify' sub-command" + snapshot="$snapshot/verify" - (small-repo-in-sandbox - (with "a valid and complete commit-graph file" - git commit-graph write --reachable - (with "statistics" - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/statistics-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" commit-graph verify -s .git/objects/info - } - ) - if test "$kind" = "max"; then - (with "statistics --format json" - it "generates the correct output" && { - WITH_SNAPSHOT="$snapshot/statistics-json-success" \ - expect_run $SUCCESSFULLY "$exe_plumbing" --format json commit-graph verify -s .git/objects/info - } + (small-repo-in-sandbox + (with "a valid and complete commit-graph file" + git commit-graph write --reachable + (with "statistics" + it "generates the correct output" && { + WITH_SNAPSHOT="$snapshot/statistics-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" free commit-graph verify -s .git/objects/info + } + ) + if test "$kind" = "max"; then + (with "statistics --format json" + it "generates the correct output" && { + WITH_SNAPSHOT="$snapshot/statistics-json-success" \ + expect_run $SUCCESSFULLY "$exe_plumbing" --format json free commit-graph verify -s .git/objects/info + } + ) + fi ) - fi ) ) ) diff --git a/tests/snapshots/plumbing/commit-graph/verify/statistics-json-success b/tests/snapshots/plumbing/no-repo/commit-graph/verify/statistics-json-success similarity index 100% rename from tests/snapshots/plumbing/commit-graph/verify/statistics-json-success rename to tests/snapshots/plumbing/no-repo/commit-graph/verify/statistics-json-success diff --git a/tests/snapshots/plumbing/commit-graph/verify/statistics-success b/tests/snapshots/plumbing/no-repo/commit-graph/verify/statistics-success similarity index 100% rename from tests/snapshots/plumbing/commit-graph/verify/statistics-success rename to tests/snapshots/plumbing/no-repo/commit-graph/verify/statistics-success diff --git a/tests/snapshots/plumbing/pack/explode/broken-delete-pack-to-sink-failure b/tests/snapshots/plumbing/no-repo/pack/explode/broken-delete-pack-to-sink-failure similarity index 100% rename from tests/snapshots/plumbing/pack/explode/broken-delete-pack-to-sink-failure rename to tests/snapshots/plumbing/no-repo/pack/explode/broken-delete-pack-to-sink-failure diff --git a/tests/snapshots/plumbing/pack/explode/broken-delete-pack-to-sink-skip-checks-success b/tests/snapshots/plumbing/no-repo/pack/explode/broken-delete-pack-to-sink-skip-checks-success similarity index 100% rename from tests/snapshots/plumbing/pack/explode/broken-delete-pack-to-sink-skip-checks-success rename to tests/snapshots/plumbing/no-repo/pack/explode/broken-delete-pack-to-sink-skip-checks-success diff --git a/tests/snapshots/plumbing/pack/explode/broken-with-objects-dir-skip-checks-success-tree-zlib-ng b/tests/snapshots/plumbing/no-repo/pack/explode/broken-with-objects-dir-skip-checks-success-tree-zlib-ng similarity index 100% rename from tests/snapshots/plumbing/pack/explode/broken-with-objects-dir-skip-checks-success-tree-zlib-ng rename to tests/snapshots/plumbing/no-repo/pack/explode/broken-with-objects-dir-skip-checks-success-tree-zlib-ng diff --git a/tests/snapshots/plumbing/pack/explode/missing-objects-dir-fail b/tests/snapshots/plumbing/no-repo/pack/explode/missing-objects-dir-fail similarity index 100% rename from tests/snapshots/plumbing/pack/explode/missing-objects-dir-fail rename to tests/snapshots/plumbing/no-repo/pack/explode/missing-objects-dir-fail diff --git a/tests/snapshots/plumbing/pack/explode/to-sink-delete-pack-success b/tests/snapshots/plumbing/no-repo/pack/explode/to-sink-delete-pack-success similarity index 100% rename from tests/snapshots/plumbing/pack/explode/to-sink-delete-pack-success rename to tests/snapshots/plumbing/no-repo/pack/explode/to-sink-delete-pack-success diff --git a/tests/snapshots/plumbing/pack/explode/to-sink-success b/tests/snapshots/plumbing/no-repo/pack/explode/to-sink-success similarity index 100% rename from tests/snapshots/plumbing/pack/explode/to-sink-success rename to tests/snapshots/plumbing/no-repo/pack/explode/to-sink-success diff --git a/tests/snapshots/plumbing/pack/explode/with-objects-dir-success b/tests/snapshots/plumbing/no-repo/pack/explode/with-objects-dir-success similarity index 100% rename from tests/snapshots/plumbing/pack/explode/with-objects-dir-success rename to tests/snapshots/plumbing/no-repo/pack/explode/with-objects-dir-success diff --git a/tests/snapshots/plumbing/pack/explode/with-objects-dir-success-tree b/tests/snapshots/plumbing/no-repo/pack/explode/with-objects-dir-success-tree similarity index 100% rename from tests/snapshots/plumbing/pack/explode/with-objects-dir-success-tree rename to tests/snapshots/plumbing/no-repo/pack/explode/with-objects-dir-success-tree diff --git a/tests/snapshots/plumbing/pack/index/create/no-output-dir-as-json-success b/tests/snapshots/plumbing/no-repo/pack/index/create/no-output-dir-as-json-success similarity index 100% rename from tests/snapshots/plumbing/pack/index/create/no-output-dir-as-json-success rename to tests/snapshots/plumbing/no-repo/pack/index/create/no-output-dir-as-json-success diff --git a/tests/snapshots/plumbing/pack/index/create/no-output-dir-success b/tests/snapshots/plumbing/no-repo/pack/index/create/no-output-dir-success similarity index 100% rename from tests/snapshots/plumbing/pack/index/create/no-output-dir-success rename to tests/snapshots/plumbing/no-repo/pack/index/create/no-output-dir-success diff --git a/tests/snapshots/plumbing/pack/index/create/output-dir-content b/tests/snapshots/plumbing/no-repo/pack/index/create/output-dir-content similarity index 100% rename from tests/snapshots/plumbing/pack/index/create/output-dir-content rename to tests/snapshots/plumbing/no-repo/pack/index/create/output-dir-content diff --git a/tests/snapshots/plumbing/pack/index/create/output-dir-restore-as-json-success b/tests/snapshots/plumbing/no-repo/pack/index/create/output-dir-restore-as-json-success similarity index 100% rename from tests/snapshots/plumbing/pack/index/create/output-dir-restore-as-json-success rename to tests/snapshots/plumbing/no-repo/pack/index/create/output-dir-restore-as-json-success diff --git a/tests/snapshots/plumbing/pack/index/create/output-dir-restore-success b/tests/snapshots/plumbing/no-repo/pack/index/create/output-dir-restore-success similarity index 100% rename from tests/snapshots/plumbing/pack/index/create/output-dir-restore-success rename to tests/snapshots/plumbing/no-repo/pack/index/create/output-dir-restore-success diff --git a/tests/snapshots/plumbing/pack/index/create/output-dir-success b/tests/snapshots/plumbing/no-repo/pack/index/create/output-dir-success similarity index 100% rename from tests/snapshots/plumbing/pack/index/create/output-dir-success rename to tests/snapshots/plumbing/no-repo/pack/index/create/output-dir-success diff --git a/tests/snapshots/plumbing/pack/receive/file-v-any-no-output b/tests/snapshots/plumbing/no-repo/pack/receive/file-v-any-no-output similarity index 100% rename from tests/snapshots/plumbing/pack/receive/file-v-any-no-output rename to tests/snapshots/plumbing/no-repo/pack/receive/file-v-any-no-output diff --git a/tests/snapshots/plumbing/pack/receive/file-v-any-no-output-json b/tests/snapshots/plumbing/no-repo/pack/receive/file-v-any-no-output-json similarity index 100% rename from tests/snapshots/plumbing/pack/receive/file-v-any-no-output-json rename to tests/snapshots/plumbing/no-repo/pack/receive/file-v-any-no-output-json diff --git a/tests/snapshots/plumbing/pack/receive/file-v-any-no-output-non-existing-single-ref b/tests/snapshots/plumbing/no-repo/pack/receive/file-v-any-no-output-non-existing-single-ref similarity index 100% rename from tests/snapshots/plumbing/pack/receive/file-v-any-no-output-non-existing-single-ref rename to tests/snapshots/plumbing/no-repo/pack/receive/file-v-any-no-output-non-existing-single-ref diff --git a/tests/snapshots/plumbing/pack/receive/file-v-any-no-output-single-ref b/tests/snapshots/plumbing/no-repo/pack/receive/file-v-any-no-output-single-ref similarity index 100% rename from tests/snapshots/plumbing/pack/receive/file-v-any-no-output-single-ref rename to tests/snapshots/plumbing/no-repo/pack/receive/file-v-any-no-output-single-ref diff --git a/tests/snapshots/plumbing/pack/receive/file-v-any-no-output-wanted-ref-p1 b/tests/snapshots/plumbing/no-repo/pack/receive/file-v-any-no-output-wanted-ref-p1 similarity index 100% rename from tests/snapshots/plumbing/pack/receive/file-v-any-no-output-wanted-ref-p1 rename to tests/snapshots/plumbing/no-repo/pack/receive/file-v-any-no-output-wanted-ref-p1 diff --git a/tests/snapshots/plumbing/pack/receive/file-v-any-with-output b/tests/snapshots/plumbing/no-repo/pack/receive/file-v-any-with-output similarity index 100% rename from tests/snapshots/plumbing/pack/receive/file-v-any-with-output rename to tests/snapshots/plumbing/no-repo/pack/receive/file-v-any-with-output diff --git a/tests/snapshots/plumbing/pack/receive/ls-in-output-dir b/tests/snapshots/plumbing/no-repo/pack/receive/ls-in-output-dir similarity index 100% rename from tests/snapshots/plumbing/pack/receive/ls-in-output-dir rename to tests/snapshots/plumbing/no-repo/pack/receive/ls-in-output-dir diff --git a/tests/snapshots/plumbing/pack/receive/repo-refs/HEAD b/tests/snapshots/plumbing/no-repo/pack/receive/repo-refs/HEAD similarity index 100% rename from tests/snapshots/plumbing/pack/receive/repo-refs/HEAD rename to tests/snapshots/plumbing/no-repo/pack/receive/repo-refs/HEAD diff --git a/tests/snapshots/plumbing/pack/receive/repo-refs/refs/heads/dev b/tests/snapshots/plumbing/no-repo/pack/receive/repo-refs/refs/heads/dev similarity index 100% rename from tests/snapshots/plumbing/pack/receive/repo-refs/refs/heads/dev rename to tests/snapshots/plumbing/no-repo/pack/receive/repo-refs/refs/heads/dev diff --git a/tests/snapshots/plumbing/pack/receive/repo-refs/refs/heads/main b/tests/snapshots/plumbing/no-repo/pack/receive/repo-refs/refs/heads/main similarity index 100% rename from tests/snapshots/plumbing/pack/receive/repo-refs/refs/heads/main rename to tests/snapshots/plumbing/no-repo/pack/receive/repo-refs/refs/heads/main diff --git a/tests/snapshots/plumbing/pack/receive/repo-refs/refs/tags/annotated b/tests/snapshots/plumbing/no-repo/pack/receive/repo-refs/refs/tags/annotated similarity index 100% rename from tests/snapshots/plumbing/pack/receive/repo-refs/refs/tags/annotated rename to tests/snapshots/plumbing/no-repo/pack/receive/repo-refs/refs/tags/annotated diff --git a/tests/snapshots/plumbing/pack/receive/repo-refs/refs/tags/unannotated b/tests/snapshots/plumbing/no-repo/pack/receive/repo-refs/refs/tags/unannotated similarity index 100% rename from tests/snapshots/plumbing/pack/receive/repo-refs/refs/tags/unannotated rename to tests/snapshots/plumbing/no-repo/pack/receive/repo-refs/refs/tags/unannotated diff --git a/tests/snapshots/plumbing/pack/verify/index-failure b/tests/snapshots/plumbing/no-repo/pack/verify/index-failure similarity index 100% rename from tests/snapshots/plumbing/pack/verify/index-failure rename to tests/snapshots/plumbing/no-repo/pack/verify/index-failure diff --git a/tests/snapshots/plumbing/pack/verify/index-success b/tests/snapshots/plumbing/no-repo/pack/verify/index-success similarity index 100% rename from tests/snapshots/plumbing/pack/verify/index-success rename to tests/snapshots/plumbing/no-repo/pack/verify/index-success diff --git a/tests/snapshots/plumbing/pack/verify/index-with-statistics-json-success b/tests/snapshots/plumbing/no-repo/pack/verify/index-with-statistics-json-success similarity index 100% rename from tests/snapshots/plumbing/pack/verify/index-with-statistics-json-success rename to tests/snapshots/plumbing/no-repo/pack/verify/index-with-statistics-json-success diff --git a/tests/snapshots/plumbing/pack/verify/index-with-statistics-success b/tests/snapshots/plumbing/no-repo/pack/verify/index-with-statistics-success similarity index 100% rename from tests/snapshots/plumbing/pack/verify/index-with-statistics-success rename to tests/snapshots/plumbing/no-repo/pack/verify/index-with-statistics-success diff --git a/tests/snapshots/plumbing/pack/verify/multi-index/fast-index-success b/tests/snapshots/plumbing/no-repo/pack/verify/multi-index/fast-index-success similarity index 100% rename from tests/snapshots/plumbing/pack/verify/multi-index/fast-index-success rename to tests/snapshots/plumbing/no-repo/pack/verify/multi-index/fast-index-success diff --git a/tests/snapshots/plumbing/pack/verify/multi-index/index-success b/tests/snapshots/plumbing/no-repo/pack/verify/multi-index/index-success similarity index 100% rename from tests/snapshots/plumbing/pack/verify/multi-index/index-success rename to tests/snapshots/plumbing/no-repo/pack/verify/multi-index/index-success diff --git a/tests/snapshots/plumbing/pack/verify/multi-index/index-with-statistics-json-success b/tests/snapshots/plumbing/no-repo/pack/verify/multi-index/index-with-statistics-json-success similarity index 100% rename from tests/snapshots/plumbing/pack/verify/multi-index/index-with-statistics-json-success rename to tests/snapshots/plumbing/no-repo/pack/verify/multi-index/index-with-statistics-json-success diff --git a/tests/snapshots/plumbing/pack/verify/multi-index/index-with-statistics-success b/tests/snapshots/plumbing/no-repo/pack/verify/multi-index/index-with-statistics-success similarity index 100% rename from tests/snapshots/plumbing/pack/verify/multi-index/index-with-statistics-success rename to tests/snapshots/plumbing/no-repo/pack/verify/multi-index/index-with-statistics-success diff --git a/tests/snapshots/plumbing/pack/verify/success b/tests/snapshots/plumbing/no-repo/pack/verify/success similarity index 100% rename from tests/snapshots/plumbing/pack/verify/success rename to tests/snapshots/plumbing/no-repo/pack/verify/success diff --git a/tests/snapshots/plumbing/plumbing/remote-ref-list/file-v-any b/tests/snapshots/plumbing/no-repo/remote/ref-list/file-v-any similarity index 100% rename from tests/snapshots/plumbing/plumbing/remote-ref-list/file-v-any rename to tests/snapshots/plumbing/no-repo/remote/ref-list/file-v-any diff --git a/tests/snapshots/plumbing/plumbing/remote-ref-list/file-v-any-json b/tests/snapshots/plumbing/no-repo/remote/ref-list/file-v-any-json similarity index 100% rename from tests/snapshots/plumbing/plumbing/remote-ref-list/file-v-any-json rename to tests/snapshots/plumbing/no-repo/remote/ref-list/file-v-any-json diff --git a/tests/snapshots/plumbing/pack/explode/broken-with-objects-dir-skip-checks-success-tree-miniz-oxide b/tests/snapshots/plumbing/pack/explode/broken-with-objects-dir-skip-checks-success-tree-miniz-oxide deleted file mode 100644 index 44c9b820241..00000000000 --- a/tests/snapshots/plumbing/pack/explode/broken-with-objects-dir-skip-checks-success-tree-miniz-oxide +++ /dev/null @@ -1,54 +0,0 @@ -. -├── 0e -│   └── ad45fc727edcf5cadca25ef922284f32bb6fc1 -├── 15 -│   └── 926d8d6d17d1cbdf7f03c457e8ff983270f363 -├── 18 -│   └── bd3fc20b0565f94bce0a3e94b6a83b26b88627 -├── 1d -│   └── fd336d2290794b0b1f80d98af33f725da6f42d -├── 2b -│   └── 621c1a3aac23b8258885a9b4658d9ac993742f -├── 2c -│   └── 1e59ee54facb7d72c0061d06b9fe3889f357a9 -├── 2d -│   └── ad8b277db3a95919bd904133d7e7cc3e323cb9 -├── 3a -│   └── b660ad62dd7c8c8bd637aa9bc1c2843a8439fe -├── 3d -│   └── 650a1c41a4529863818fd613b95e83668bbfc1 -├── 41 -│   └── 97ce3c6d943759e1088a0298b64571b4bc725a -├── 50 -│   └── 1b297447a8255d3533c6858bb692575cdefaa0 -├── 5d -│   └── e2eda652f29103c0d160f8c05d7e83b653a157 -├── 66 -│   └── 74d310d179400358d581f9725cbd4a2c32e3bf -├── 68 -│   └── b95733c796b12571fb1f656062a15a78e7dcf4 -├── 83 -│   └── d9602eccfc733a550812ce492d4caa0af625c8 -├── 84 -│   ├── 26f672fc65239135b1f1580bb79ecb16fd05f0 -│   └── 81dbefa2fb9398a673fe1f48dc480c1f558890 -├── 85 -│   └── 48234cfc7b4f0c9475d24d4c386783533a8034 -├── 88 -│   └── 58983d81b0eef76eb55d21a0d96b7b16846eca -├── af -│   └── 4f6405296dec699321ca59d48583ffa0323b0e -├── b2 -│   └── 025146d0718d953036352f8435cfa392b1d799 -├── bb -│   └── a287531b3a845faa032a8fef3e6d70d185c89b -├── bd -│   └── 91890c62d85ec16aadd3fb991b3ad7a365adde -├── cb -│   └── 572206d9dac4ba52878e7e1a4a7028d85707ab -├── e2 -│   └── 34c232ce0b8acef3f43fa34c036e68522b5612 -└── e8 - └── 00b9c207e17f9b11e321cc1fba5dfe08af4222 - -25 directories, 26 files \ No newline at end of file diff --git a/tests/snapshots/plumbing/pack/receive/pack receive-no-networking-in-small-failure b/tests/snapshots/plumbing/pack/receive/pack receive-no-networking-in-small-failure deleted file mode 100644 index 04aa399b4c1..00000000000 --- a/tests/snapshots/plumbing/pack/receive/pack receive-no-networking-in-small-failure +++ /dev/null @@ -1,6 +0,0 @@ -error: Found argument 'receive' which wasn't expected, or isn't valid in this context - -USAGE: - gix pack - -For more information try --help \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/commit-graph-verify/statistics-json-success b/tests/snapshots/plumbing/plumbing/commit-graph-verify/statistics-json-success deleted file mode 100644 index 301cf39a105..00000000000 --- a/tests/snapshots/plumbing/plumbing/commit-graph-verify/statistics-json-success +++ /dev/null @@ -1,8 +0,0 @@ -{ - "longest_path_length": 2, - "num_commits": 3, - "parent_counts": { - "0": 1, - "1": 2 - } -} \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/commit-graph-verify/statistics-success b/tests/snapshots/plumbing/plumbing/commit-graph-verify/statistics-success deleted file mode 100644 index b0bf9808c4a..00000000000 --- a/tests/snapshots/plumbing/plumbing/commit-graph-verify/statistics-success +++ /dev/null @@ -1,6 +0,0 @@ -number of commits with the given number of parents - 0: 1 - 1: 2 - ->: 3 - -longest path length between two commits: 2 \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-explode/broken-delete-pack-to-sink-failure b/tests/snapshots/plumbing/plumbing/pack-explode/broken-delete-pack-to-sink-failure deleted file mode 100644 index 188504fa7b4..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-explode/broken-delete-pack-to-sink-failure +++ /dev/null @@ -1,5 +0,0 @@ -Error: Failed to explode the entire pack - some loose objects may have been created nonetheless - -Caused by: - 0: The pack of this index file failed to verify its checksums - 1: pack checksum mismatch: expected f1cd3cc7bc63a4a2b357a475a58ad49b40355470, got 337fe3b886fc5041a35313887d68feefeae52519 \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-explode/broken-delete-pack-to-sink-skip-checks-success b/tests/snapshots/plumbing/plumbing/pack-explode/broken-delete-pack-to-sink-skip-checks-success deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/tests/snapshots/plumbing/plumbing/pack-explode/broken-with-objects-dir-skip-checks-success-tree-miniz-oxide b/tests/snapshots/plumbing/plumbing/pack-explode/broken-with-objects-dir-skip-checks-success-tree-miniz-oxide deleted file mode 100644 index 44c9b820241..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-explode/broken-with-objects-dir-skip-checks-success-tree-miniz-oxide +++ /dev/null @@ -1,54 +0,0 @@ -. -├── 0e -│   └── ad45fc727edcf5cadca25ef922284f32bb6fc1 -├── 15 -│   └── 926d8d6d17d1cbdf7f03c457e8ff983270f363 -├── 18 -│   └── bd3fc20b0565f94bce0a3e94b6a83b26b88627 -├── 1d -│   └── fd336d2290794b0b1f80d98af33f725da6f42d -├── 2b -│   └── 621c1a3aac23b8258885a9b4658d9ac993742f -├── 2c -│   └── 1e59ee54facb7d72c0061d06b9fe3889f357a9 -├── 2d -│   └── ad8b277db3a95919bd904133d7e7cc3e323cb9 -├── 3a -│   └── b660ad62dd7c8c8bd637aa9bc1c2843a8439fe -├── 3d -│   └── 650a1c41a4529863818fd613b95e83668bbfc1 -├── 41 -│   └── 97ce3c6d943759e1088a0298b64571b4bc725a -├── 50 -│   └── 1b297447a8255d3533c6858bb692575cdefaa0 -├── 5d -│   └── e2eda652f29103c0d160f8c05d7e83b653a157 -├── 66 -│   └── 74d310d179400358d581f9725cbd4a2c32e3bf -├── 68 -│   └── b95733c796b12571fb1f656062a15a78e7dcf4 -├── 83 -│   └── d9602eccfc733a550812ce492d4caa0af625c8 -├── 84 -│   ├── 26f672fc65239135b1f1580bb79ecb16fd05f0 -│   └── 81dbefa2fb9398a673fe1f48dc480c1f558890 -├── 85 -│   └── 48234cfc7b4f0c9475d24d4c386783533a8034 -├── 88 -│   └── 58983d81b0eef76eb55d21a0d96b7b16846eca -├── af -│   └── 4f6405296dec699321ca59d48583ffa0323b0e -├── b2 -│   └── 025146d0718d953036352f8435cfa392b1d799 -├── bb -│   └── a287531b3a845faa032a8fef3e6d70d185c89b -├── bd -│   └── 91890c62d85ec16aadd3fb991b3ad7a365adde -├── cb -│   └── 572206d9dac4ba52878e7e1a4a7028d85707ab -├── e2 -│   └── 34c232ce0b8acef3f43fa34c036e68522b5612 -└── e8 - └── 00b9c207e17f9b11e321cc1fba5dfe08af4222 - -25 directories, 26 files \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-explode/broken-with-objects-dir-skip-checks-success-tree-zlib-ng b/tests/snapshots/plumbing/plumbing/pack-explode/broken-with-objects-dir-skip-checks-success-tree-zlib-ng deleted file mode 100644 index 3b1ec68144d..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-explode/broken-with-objects-dir-skip-checks-success-tree-zlib-ng +++ /dev/null @@ -1,56 +0,0 @@ -. -├── 0e -│   └── ad45fc727edcf5cadca25ef922284f32bb6fc1 -├── 15 -│   └── 926d8d6d17d1cbdf7f03c457e8ff983270f363 -├── 18 -│   └── bd3fc20b0565f94bce0a3e94b6a83b26b88627 -├── 1d -│   └── fd336d2290794b0b1f80d98af33f725da6f42d -├── 2b -│   └── 621c1a3aac23b8258885a9b4658d9ac993742f -├── 2c -│   └── 1e59ee54facb7d72c0061d06b9fe3889f357a9 -├── 2d -│   └── ad8b277db3a95919bd904133d7e7cc3e323cb9 -├── 3a -│   └── b660ad62dd7c8c8bd637aa9bc1c2843a8439fe -├── 3d -│   └── 650a1c41a4529863818fd613b95e83668bbfc1 -├── 41 -│   └── 97ce3c6d943759e1088a0298b64571b4bc725a -├── 50 -│   └── 1b297447a8255d3533c6858bb692575cdefaa0 -├── 5d -│   └── e2eda652f29103c0d160f8c05d7e83b653a157 -├── 66 -│   └── 74d310d179400358d581f9725cbd4a2c32e3bf -├── 68 -│   └── b95733c796b12571fb1f656062a15a78e7dcf4 -├── 83 -│   └── d9602eccfc733a550812ce492d4caa0af625c8 -├── 84 -│   ├── 26f672fc65239135b1f1580bb79ecb16fd05f0 -│   └── 81dbefa2fb9398a673fe1f48dc480c1f558890 -├── 85 -│   └── 48234cfc7b4f0c9475d24d4c386783533a8034 -├── 88 -│   └── 58983d81b0eef76eb55d21a0d96b7b16846eca -├── a2 -│   └── 9ebd0e0fcbcd2a0842dd44cc7c22a90a310a3a -├── af -│   └── 4f6405296dec699321ca59d48583ffa0323b0e -├── b2 -│   └── 025146d0718d953036352f8435cfa392b1d799 -├── bb -│   └── a287531b3a845faa032a8fef3e6d70d185c89b -├── bd -│   └── 91890c62d85ec16aadd3fb991b3ad7a365adde -├── cb -│   └── 572206d9dac4ba52878e7e1a4a7028d85707ab -├── e2 -│   └── 34c232ce0b8acef3f43fa34c036e68522b5612 -└── e8 - └── 00b9c207e17f9b11e321cc1fba5dfe08af4222 - -26 directories, 27 files \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-explode/missing-objects-dir-fail b/tests/snapshots/plumbing/plumbing/pack-explode/missing-objects-dir-fail deleted file mode 100644 index 1993202aeed..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-explode/missing-objects-dir-fail +++ /dev/null @@ -1 +0,0 @@ -Error: The object directory at 'does-not-exist' is inaccessible \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-explode/to-sink-delete-pack-success b/tests/snapshots/plumbing/plumbing/pack-explode/to-sink-delete-pack-success deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/tests/snapshots/plumbing/plumbing/pack-explode/to-sink-success b/tests/snapshots/plumbing/plumbing/pack-explode/to-sink-success deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/tests/snapshots/plumbing/plumbing/pack-explode/with-objects-dir-success b/tests/snapshots/plumbing/plumbing/pack-explode/with-objects-dir-success deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/tests/snapshots/plumbing/plumbing/pack-explode/with-objects-dir-success-tree b/tests/snapshots/plumbing/plumbing/pack-explode/with-objects-dir-success-tree deleted file mode 100644 index 3632ea6c75e..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-explode/with-objects-dir-success-tree +++ /dev/null @@ -1,61 +0,0 @@ -. -├── 0e -│   └── ad45fc727edcf5cadca25ef922284f32bb6fc1 -├── 15 -│   └── 926d8d6d17d1cbdf7f03c457e8ff983270f363 -├── 18 -│   └── bd3fc20b0565f94bce0a3e94b6a83b26b88627 -├── 1a -│   └── 480b442042edd4a6bacae41bf4113727e7a130 -├── 1d -│   └── fd336d2290794b0b1f80d98af33f725da6f42d -├── 2b -│   └── 621c1a3aac23b8258885a9b4658d9ac993742f -├── 2c -│   └── 1e59ee54facb7d72c0061d06b9fe3889f357a9 -├── 2d -│   └── ad8b277db3a95919bd904133d7e7cc3e323cb9 -├── 3a -│   └── b660ad62dd7c8c8bd637aa9bc1c2843a8439fe -├── 3d -│   └── 650a1c41a4529863818fd613b95e83668bbfc1 -├── 41 -│   └── 97ce3c6d943759e1088a0298b64571b4bc725a -├── 4c -│   ├── 35f641dbedaed230b5588fdc106c4538b4d09b -│   └── 97a057e41159f9767cf8704ed5ae181adf4d8d -├── 50 -│   └── 1b297447a8255d3533c6858bb692575cdefaa0 -├── 5d -│   └── e2eda652f29103c0d160f8c05d7e83b653a157 -├── 66 -│   └── 74d310d179400358d581f9725cbd4a2c32e3bf -├── 68 -│   └── b95733c796b12571fb1f656062a15a78e7dcf4 -├── 83 -│   └── d9602eccfc733a550812ce492d4caa0af625c8 -├── 84 -│   ├── 26f672fc65239135b1f1580bb79ecb16fd05f0 -│   └── 81dbefa2fb9398a673fe1f48dc480c1f558890 -├── 85 -│   └── 48234cfc7b4f0c9475d24d4c386783533a8034 -├── 88 -│   └── 58983d81b0eef76eb55d21a0d96b7b16846eca -├── ac -│   └── f86bca46d2b53d19a5a382e10def38d3e224da -├── af -│   └── 4f6405296dec699321ca59d48583ffa0323b0e -├── b2 -│   └── 025146d0718d953036352f8435cfa392b1d799 -├── bb -│   └── a287531b3a845faa032a8fef3e6d70d185c89b -├── bd -│   └── 91890c62d85ec16aadd3fb991b3ad7a365adde -├── cb -│   └── 572206d9dac4ba52878e7e1a4a7028d85707ab -├── e2 -│   └── 34c232ce0b8acef3f43fa34c036e68522b5612 -└── e8 - └── 00b9c207e17f9b11e321cc1fba5dfe08af4222 - -28 directories, 30 files \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-index-from-data/no-output-dir-as-json-success b/tests/snapshots/plumbing/plumbing/pack-index-from-data/no-output-dir-as-json-success deleted file mode 100644 index f4fa3f420b9..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-index-from-data/no-output-dir-as-json-success +++ /dev/null @@ -1,57 +0,0 @@ -{ - "index": { - "index_kind": "V2", - "index_hash": { - "Sha1": [ - 86, - 14, - 186, - 102, - 230, - 179, - 145, - 235, - 131, - 239, - 195, - 236, - 159, - 200, - 163, - 8, - 119, - 136, - 145, - 28 - ] - }, - "data_hash": { - "Sha1": [ - 241, - 205, - 60, - 199, - 188, - 99, - 164, - 162, - 179, - 87, - 164, - 117, - 165, - 138, - 212, - 155, - 64, - 53, - 84, - 112 - ] - }, - "num_objects": 30 - }, - "pack_kind": "V2", - "index_path": null, - "data_path": null -} \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-index-from-data/no-output-dir-success b/tests/snapshots/plumbing/plumbing/pack-index-from-data/no-output-dir-success deleted file mode 100644 index d781ca1ed7f..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-index-from-data/no-output-dir-success +++ /dev/null @@ -1,2 +0,0 @@ -index: 560eba66e6b391eb83efc3ec9fc8a3087788911c -pack: f1cd3cc7bc63a4a2b357a475a58ad49b40355470 \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-content b/tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-content deleted file mode 100644 index a649eb341f0..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-content +++ /dev/null @@ -1,2 +0,0 @@ -f1cd3cc7bc63a4a2b357a475a58ad49b40355470.idx -f1cd3cc7bc63a4a2b357a475a58ad49b40355470.pack \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-restore-as-json-success b/tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-restore-as-json-success deleted file mode 100644 index 7027faa9fe6..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-restore-as-json-success +++ /dev/null @@ -1,57 +0,0 @@ -{ - "index": { - "index_kind": "V2", - "index_hash": { - "Sha1": [ - 44, - 185, - 97, - 229, - 91, - 122, - 124, - 171, - 95, - 21, - 242, - 34, - 7, - 36, - 229, - 221, - 122, - 222, - 249, - 244 - ] - }, - "data_hash": { - "Sha1": [ - 1, - 186, - 104, - 186, - 85, - 239, - 94, - 145, - 116, - 131, - 212, - 206, - 70, - 190, - 40, - 132, - 168, - 158, - 81, - 175 - ] - }, - "num_objects": 13 - }, - "pack_kind": "V2", - "index_path": "" - "data_path": "" -} \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-restore-success b/tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-restore-success deleted file mode 100644 index 2c5237a4c0e..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-restore-success +++ /dev/null @@ -1,2 +0,0 @@ -index: 2cb961e55b7a7cab5f15f2220724e5dd7adef9f4 -pack: 01ba68ba55ef5e917483d4ce46be2884a89e51af \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-success b/tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-success deleted file mode 100644 index d781ca1ed7f..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-index-from-data/output-dir-success +++ /dev/null @@ -1,2 +0,0 @@ -index: 560eba66e6b391eb83efc3ec9fc8a3087788911c -pack: f1cd3cc7bc63a4a2b357a475a58ad49b40355470 \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output b/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output deleted file mode 100644 index 57c0617c306..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output +++ /dev/null @@ -1,8 +0,0 @@ -index: c787de2aafb897417ca8167baeb146eabd18bc5f -pack: 346574b7331dc3a1724da218d622c6e1b6c66a57 - -3f72b39ad1600e6dac63430c15e0d875e9d3f9d6 HEAD symref-target:refs/heads/main -ee3c97678e89db4eab7420b04aef51758359f152 refs/heads/dev -3f72b39ad1600e6dac63430c15e0d875e9d3f9d6 refs/heads/main -ee3c97678e89db4eab7420b04aef51758359f152 refs/tags/annotated tag:feae03400632392a7f38e5b2775f98a439f5eaf5 -efa596d621559707b2d221f10490959b2decbc6c refs/tags/unannotated \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-json b/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-json deleted file mode 100644 index 590a10265e2..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "index": { - "index_kind": "V2", - "index_hash": "c787de2aafb897417ca8167baeb146eabd18bc5f", - "data_hash": "346574b7331dc3a1724da218d622c6e1b6c66a57", - "num_objects": 9 - }, - "pack_kind": "V2", - "index_path": null, - "data_path": null, - "refs": [ - { - "Symbolic": { - "path": "HEAD", - "target": "refs/heads/main", - "object": "3f72b39ad1600e6dac63430c15e0d875e9d3f9d6" - } - }, - { - "Direct": { - "path": "refs/heads/dev", - "object": "ee3c97678e89db4eab7420b04aef51758359f152" - } - }, - { - "Direct": { - "path": "refs/heads/main", - "object": "3f72b39ad1600e6dac63430c15e0d875e9d3f9d6" - } - }, - { - "Peeled": { - "path": "refs/tags/annotated", - "tag": "feae03400632392a7f38e5b2775f98a439f5eaf5", - "object": "ee3c97678e89db4eab7420b04aef51758359f152" - } - }, - { - "Direct": { - "path": "refs/tags/unannotated", - "object": "efa596d621559707b2d221f10490959b2decbc6c" - } - } - ] -} \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-non-existing-single-ref b/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-non-existing-single-ref deleted file mode 100644 index 6bed155babf..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-non-existing-single-ref +++ /dev/null @@ -1,5 +0,0 @@ -Error: The server response could not be parsed - -Caused by: - 0: Upload pack reported an error - 1: unknown ref refs/heads/does-not-exist \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-single-ref b/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-single-ref deleted file mode 100644 index 84260bc4021..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-single-ref +++ /dev/null @@ -1,2 +0,0 @@ -index: c787de2aafb897417ca8167baeb146eabd18bc5f -pack: 346574b7331dc3a1724da218d622c6e1b6c66a57 \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-wanted-ref-p1 b/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-wanted-ref-p1 deleted file mode 100644 index c5203d08e6e..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-no-output-wanted-ref-p1 +++ /dev/null @@ -1,4 +0,0 @@ -Error: Could not access repository or failed to read streaming pack file - -Caused by: - Want to get specific refs, but remote doesn't support this capability \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-with-output b/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-with-output deleted file mode 100644 index 43ac53bfe11..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/file-v-any-with-output +++ /dev/null @@ -1,8 +0,0 @@ -index: c787de2aafb897417ca8167baeb146eabd18bc5f (out/346574b7331dc3a1724da218d622c6e1b6c66a57.idx) -pack: 346574b7331dc3a1724da218d622c6e1b6c66a57 (out/346574b7331dc3a1724da218d622c6e1b6c66a57.pack) - -3f72b39ad1600e6dac63430c15e0d875e9d3f9d6 HEAD symref-target:refs/heads/main -ee3c97678e89db4eab7420b04aef51758359f152 refs/heads/dev -3f72b39ad1600e6dac63430c15e0d875e9d3f9d6 refs/heads/main -ee3c97678e89db4eab7420b04aef51758359f152 refs/tags/annotated tag:feae03400632392a7f38e5b2775f98a439f5eaf5 -efa596d621559707b2d221f10490959b2decbc6c refs/tags/unannotated \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/ls-in-output-dir b/tests/snapshots/plumbing/plumbing/pack-receive/ls-in-output-dir deleted file mode 100644 index 9c73e822fe2..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/ls-in-output-dir +++ /dev/null @@ -1,2 +0,0 @@ -346574b7331dc3a1724da218d622c6e1b6c66a57.idx -346574b7331dc3a1724da218d622c6e1b6c66a57.pack \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/pack-receive-no-networking-in-small-failure b/tests/snapshots/plumbing/plumbing/pack-receive/pack-receive-no-networking-in-small-failure deleted file mode 100644 index 74d6602a909..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/pack-receive-no-networking-in-small-failure +++ /dev/null @@ -1 +0,0 @@ -Unrecognized argument: pack-receive \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/HEAD b/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/HEAD deleted file mode 100644 index bddcc0b83e6..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/main \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/heads/dev b/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/heads/dev deleted file mode 100644 index 1a3950e2e0c..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/heads/dev +++ /dev/null @@ -1 +0,0 @@ -ee3c97678e89db4eab7420b04aef51758359f152 \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/heads/main b/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/heads/main deleted file mode 100644 index 6f4a76ab3b8..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/heads/main +++ /dev/null @@ -1 +0,0 @@ -3f72b39ad1600e6dac63430c15e0d875e9d3f9d6 \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/tags/annotated b/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/tags/annotated deleted file mode 100644 index cd887a5aedb..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/tags/annotated +++ /dev/null @@ -1 +0,0 @@ -feae03400632392a7f38e5b2775f98a439f5eaf5 \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/tags/unannotated b/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/tags/unannotated deleted file mode 100644 index cbc7b39d75c..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-receive/repo-refs/refs/tags/unannotated +++ /dev/null @@ -1 +0,0 @@ -efa596d621559707b2d221f10490959b2decbc6c \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-verify/index-failure b/tests/snapshots/plumbing/plumbing/pack-verify/index-failure deleted file mode 100644 index b93e9895bb1..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-verify/index-failure +++ /dev/null @@ -1,6 +0,0 @@ -Could not find matching pack file at 'index.pack' - only index file will be verified, error was: Could not open pack file at 'index.pack' -Error: Verification failure - -Caused by: - 0: Index file, pack file or object verification failed - 1: index checksum mismatch: expected 0eba66e6b391eb83efc3ec9fc8a3087788911c0a, got fa9a8a630eacc2d3df00aff604bec2451ccbc8ff \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-verify/index-success b/tests/snapshots/plumbing/plumbing/pack-verify/index-success deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/tests/snapshots/plumbing/plumbing/pack-verify/index-with-statistics-json-success b/tests/snapshots/plumbing/plumbing/pack-verify/index-with-statistics-json-success deleted file mode 100644 index 9a42741b0ba..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-verify/index-with-statistics-json-success +++ /dev/null @@ -1,26 +0,0 @@ -{ - "average": { - "kind": "Tree", - "num_deltas": 1, - "decompressed_size": 3456, - "compressed_size": 1725, - "object_size": 9621 - }, - "objects_per_chain_length": { - "0": 18, - "1": 4, - "2": 3, - "3": 1, - "4": 2, - "5": 1, - "6": 1 - }, - "total_compressed_entries_size": 51753, - "total_decompressed_entries_size": 103701, - "total_object_size": 288658, - "pack_size": 51875, - "num_commits": 10, - "num_trees": 15, - "num_tags": 0, - "num_blobs": 5 -} \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-verify/index-with-statistics-success b/tests/snapshots/plumbing/plumbing/pack-verify/index-with-statistics-success deleted file mode 100644 index 420f9ce588d..00000000000 --- a/tests/snapshots/plumbing/plumbing/pack-verify/index-with-statistics-success +++ /dev/null @@ -1,31 +0,0 @@ -objects per delta chain length - 0: 18 - 1: 4 - 2: 3 - 3: 1 - 4: 2 - 5: 1 - 6: 1 - ->: 30 - -averages - delta chain length: 1; - decompressed entry [B]: 3456; - compressed entry [B]: 1725; - decompressed object size [B]: 9621; - -compression - compressed entries size : 51.8 KB - decompressed entries size : 103.7 KB - total object size : 288.7 KB - pack size : 51.9 KB - - num trees : 15 - num blobs : 5 - num commits : 10 - num tags : 0 - - compression ratio : 2.00 - delta compression ratio : 5.58 - delta gain : 2.78 - pack overhead : 0.235% \ No newline at end of file diff --git a/tests/snapshots/plumbing/plumbing/pack-verify/success b/tests/snapshots/plumbing/plumbing/pack-verify/success deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/tests/snapshots/plumbing/plumbing/remote-ref-list/remote-ref-list-no-networking-in-small-failure b/tests/snapshots/plumbing/plumbing/remote-ref-list/remote-ref-list-no-networking-in-small-failure deleted file mode 100644 index aaf27b70548..00000000000 --- a/tests/snapshots/plumbing/plumbing/remote-ref-list/remote-ref-list-no-networking-in-small-failure +++ /dev/null @@ -1 +0,0 @@ -Unrecognized argument: remote-ref-list \ No newline at end of file diff --git a/tests/snapshots/plumbing/remote/ref-list/file-v-any b/tests/snapshots/plumbing/remote/ref-list/file-v-any deleted file mode 100644 index 1ff9b7937dc..00000000000 --- a/tests/snapshots/plumbing/remote/ref-list/file-v-any +++ /dev/null @@ -1,5 +0,0 @@ -3f72b39ad1600e6dac63430c15e0d875e9d3f9d6 HEAD symref-target:refs/heads/main -ee3c97678e89db4eab7420b04aef51758359f152 refs/heads/dev -3f72b39ad1600e6dac63430c15e0d875e9d3f9d6 refs/heads/main -ee3c97678e89db4eab7420b04aef51758359f152 refs/tags/annotated tag:feae03400632392a7f38e5b2775f98a439f5eaf5 -efa596d621559707b2d221f10490959b2decbc6c refs/tags/unannotated \ No newline at end of file diff --git a/tests/snapshots/plumbing/remote/ref-list/file-v-any-json b/tests/snapshots/plumbing/remote/ref-list/file-v-any-json deleted file mode 100644 index e4afb4c6b48..00000000000 --- a/tests/snapshots/plumbing/remote/ref-list/file-v-any-json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "Symbolic": { - "path": "HEAD", - "target": "refs/heads/main", - "object": "3f72b39ad1600e6dac63430c15e0d875e9d3f9d6" - } - }, - { - "Direct": { - "path": "refs/heads/dev", - "object": "ee3c97678e89db4eab7420b04aef51758359f152" - } - }, - { - "Direct": { - "path": "refs/heads/main", - "object": "3f72b39ad1600e6dac63430c15e0d875e9d3f9d6" - } - }, - { - "Peeled": { - "path": "refs/tags/annotated", - "tag": "feae03400632392a7f38e5b2775f98a439f5eaf5", - "object": "ee3c97678e89db4eab7420b04aef51758359f152" - } - }, - { - "Direct": { - "path": "refs/tags/unannotated", - "object": "efa596d621559707b2d221f10490959b2decbc6c" - } - } -] \ No newline at end of file diff --git a/tests/snapshots/plumbing/remote/ref-list/remote ref-list-no-networking-in-small-failure b/tests/snapshots/plumbing/remote/ref-list/remote ref-list-no-networking-in-small-failure deleted file mode 100644 index ebb5294e607..00000000000 --- a/tests/snapshots/plumbing/remote/ref-list/remote ref-list-no-networking-in-small-failure +++ /dev/null @@ -1,6 +0,0 @@ -error: Found argument 'remote' which wasn't expected, or isn't valid in this context - -USAGE: - gix [OPTIONS] - -For more information try --help \ No newline at end of file