support relative paths

This commit is contained in:
Christoph Klaffl 2024-04-05 15:24:42 +02:00
parent 19fc237476
commit d7ed4bdf54
No known key found for this signature in database
GPG Key ID: 8FC1D76EED4970D2
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ if ($args{'path'} eq '') {
}
}
# resolve given path to a canonical one
$args{'path'} = Cwd::realpath($args{'path'});
my $dataset = getdataset($args{'path'});
my %versions = getversions($args{'path'}, $dataset);