From 3bee55ab1dd486c7218e2810d0b3b36edb272dc5 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 4 Feb 2025 23:57:03 +0100 Subject: common: Add tests for git Wanted to include a non-bare repo as well but git doesn't like one adding a non-bare git repo NOT as a submodule. And bare repos are the main code path anyway. --- server/common/src/testdata/bare/refs/heads/branch | 1 + server/common/src/testdata/bare/refs/heads/main | 1 + server/common/src/testdata/bare/refs/heads/other | 1 + 3 files changed, 3 insertions(+) create mode 100644 server/common/src/testdata/bare/refs/heads/branch create mode 100644 server/common/src/testdata/bare/refs/heads/main create mode 100644 server/common/src/testdata/bare/refs/heads/other (limited to 'server/common/src/testdata/bare/refs') diff --git a/server/common/src/testdata/bare/refs/heads/branch b/server/common/src/testdata/bare/refs/heads/branch new file mode 100644 index 0000000..58c43e3 --- /dev/null +++ b/server/common/src/testdata/bare/refs/heads/branch @@ -0,0 +1 @@ +2d05d489d42d4f36dd0ebf52502f243991e010eb diff --git a/server/common/src/testdata/bare/refs/heads/main b/server/common/src/testdata/bare/refs/heads/main new file mode 100644 index 0000000..7797e9f --- /dev/null +++ b/server/common/src/testdata/bare/refs/heads/main @@ -0,0 +1 @@ +d7c502b9c6b833060576a0c4da0287933d603011 diff --git a/server/common/src/testdata/bare/refs/heads/other b/server/common/src/testdata/bare/refs/heads/other new file mode 100644 index 0000000..7d37c51 --- /dev/null +++ b/server/common/src/testdata/bare/refs/heads/other @@ -0,0 +1 @@ +2cecdec660a30bf3964cee645d9cee03640ef8dc -- cgit v1.2.3-70-g09d2