summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-03 21:39:58 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-03 21:39:58 -0700
commitf54ebfe13df04010b402710a146f302480aa9da1 (patch)
tree0595dde8b25bf942af4339fc64afb0c1d4ebe1dd /t
parent36fc8a8cef0f3cba576d7e9bb0d39c892a7281e2 (diff)
downloadp5-Git-Annex-f54ebfe13df04010b402710a146f302480aa9da1.tar.gz
check that it is relaxed about dir existing
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 't')
-rwxr-xr-xt/10_init.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/10_init.t b/t/10_init.t
index 2009f96..5d72048 100755
--- a/t/10_init.t
+++ b/t/10_init.t
@@ -22,6 +22,7 @@ use File::Spec::Functions qw(catfile file_name_is_absolute);
$annex = Git::Annex->new("foo");
ok file_name_is_absolute $annex->toplevel,
"it converts a relative path to absolute";
+ ok !-d $annex->toplevel, "it permits initialisation in a nonexistent dir";
}
{