diff options
Diffstat (limited to 'lib/App/annex_to_annex.pm')
-rw-r--r-- | lib/App/annex_to_annex.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/App/annex_to_annex.pm b/lib/App/annex_to_annex.pm index 29cd3f7..56ea2d8 100644 --- a/lib/App/annex_to_annex.pm +++ b/lib/App/annex_to_annex.pm @@ -42,6 +42,9 @@ that command. =cut sub main { + shift if $_[0] and ref $_[0] eq ""; # in case main called as a class method + local @ARGV = @{ $_[0] } if $_[0] and ref $_[0] ne ""; + # only support v7 because supporting v5 too would make things quite # complex. require git-annex >=7.20191009 because it will refuse to # work in v5 repos, and because it supports `git annex find --unlocked` |