We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71275d1 commit a74a861Copy full SHA for a74a861
gix-discover/tests/discover/is_git/mod.rs
@@ -130,3 +130,11 @@ fn split_worktree_using_configuration() -> crate::Result {
130
}
131
Ok(())
132
133
+
134
+#[test]
135
+fn reftable() -> crate::Result {
136
+ let repo = gix_testtools::scripted_fixture_read_only("make_reftable_repo.sh")?.join("reftable-clone");
137
+ let kind = gix_discover::is_git(&repo)?;
138
+ assert_eq!(kind, gix_discover::repository::Kind::WorkTree { linked_git_dir: None });
139
+ Ok(())
140
+}
gix-discover/tests/fixtures/generated-archives/make_reftable_repo.tar
51 KB
gix-discover/tests/fixtures/make_reftable_repo.sh
@@ -0,0 +1,13 @@
1
+#!/usr/bin/env bash
2
+set -eu -o pipefail
3
4
+git init -q
5
6
+git checkout -b main
7
+touch this
8
+git add this
9
+git commit -q -m c1
10
+echo hello >> this
11
+git commit -q -am c2
12
13
+git clone --ref-format=reftable . reftable-clone
0 commit comments