summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-03 22:22:07 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-03 22:22:07 -0700
commit9d8392910d29a2aa4c4645557ab6b47c001df2f6 (patch)
treecbbbe30bf02b1383ce597ebb9bc6e35fa03dc92f /t
parentf54ebfe13df04010b402710a146f302480aa9da1 (diff)
downloadp5-Git-Annex-9d8392910d29a2aa4c4645557ab6b47c001df2f6.tar.gz
rise to top of working tree on Git::Annex initialisation
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 't')
-rwxr-xr-xt/10_init.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/10_init.t b/t/10_init.t
index 5d72048..b8f67fa 100755
--- a/t/10_init.t
+++ b/t/10_init.t
@@ -45,4 +45,10 @@ with_temp_annexes {
"Git::Repository has correct toplevel";
};
+with_temp_annexes {
+ my $source1_dir = catfile shift, "source1";
+ my $annex = Git::Annex->new(catfile $source1_dir, "foo");
+ is $annex->toplevel, $source1_dir, "it rises to top of working tree";
+};
+
done_testing;