From 71da37b3939c260127544e3c553af9670b1e03b3 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Wed, 13 Jul 2022 16:46:08 -0400 Subject: [PATCH 1/2] exercise symlink chasing without .git --- .github/workflows/e2e.yaml | 2 +- test/kodata/HEAD | 1 - test/kodata/a | 1 + test/kodata/b | 1 + test/kodata/refs | 1 - 5 files changed, 3 insertions(+), 3 deletions(-) delete mode 120000 test/kodata/HEAD create mode 100644 test/kodata/a create mode 120000 test/kodata/b delete mode 120000 test/kodata/refs diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 8ce3ea0f6a..f7e62a7017 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -55,7 +55,7 @@ jobs: # Check that symlinks in kodata are chased. # Skip this test on Windows. if [[ "$RUNNER_OS" == "Linux" ]]; then - docker run ${testimg} --wait=false -f HEAD + docker run ${testimg} --wait=false -f b fi # Check that using ldflags to set variables works. diff --git a/test/kodata/HEAD b/test/kodata/HEAD deleted file mode 120000 index 68ad874ce5..0000000000 --- a/test/kodata/HEAD +++ /dev/null @@ -1 +0,0 @@ -../../.git/HEAD \ No newline at end of file diff --git a/test/kodata/a b/test/kodata/a new file mode 100644 index 0000000000..ce01362503 --- /dev/null +++ b/test/kodata/a @@ -0,0 +1 @@ +hello diff --git a/test/kodata/b b/test/kodata/b new file mode 120000 index 0000000000..c0460bd262 --- /dev/null +++ b/test/kodata/b @@ -0,0 +1 @@ +test/kodata/a \ No newline at end of file diff --git a/test/kodata/refs b/test/kodata/refs deleted file mode 120000 index dcbeeb0065..0000000000 --- a/test/kodata/refs +++ /dev/null @@ -1 +0,0 @@ -../../.git/refs \ No newline at end of file From db2463dc4951a59ce6df898d9fff67f732993195 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Wed, 13 Jul 2022 16:54:41 -0400 Subject: [PATCH 2/2] fix b symlink --- test/kodata/b | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/kodata/b b/test/kodata/b index c0460bd262..2e65efe2a1 120000 --- a/test/kodata/b +++ b/test/kodata/b @@ -1 +1 @@ -test/kodata/a \ No newline at end of file +a \ No newline at end of file