summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Git/Annex.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Git/Annex.pm b/lib/Git/Annex.pm
index 3819b09..19e818a 100644
--- a/lib/Git/Annex.pm
+++ b/lib/Git/Annex.pm
@@ -258,7 +258,7 @@ sub _git_path {
around BUILDARGS => sub {
my (undef, undef, @args) = @_;
- { toplevel => $args[0] // getcwd };
+ { toplevel => $args[0] ? rel2abs($args[0]) : getcwd };
};
1;