Skip to content

Commit a74a861

Browse files
DianaNitesByron
authored andcommitted
Add reftable test
1 parent 71275d1 commit a74a861

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

gix-discover/tests/discover/is_git/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,11 @@ fn split_worktree_using_configuration() -> crate::Result {
130130
}
131131
Ok(())
132132
}
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+
}
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)