]> git.nbdom.net Git - nb.git/commitdiff
nb-repo-dirs absolute paths
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 4 Nov 2016 01:14:42 +0000 (02:14 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 4 Nov 2016 01:14:42 +0000 (02:14 +0100)
bin/nb-repo-dirs

index 71ee8e3bcf086f150ecbd2b1bc59ebf98c09f9ab..e65bb3dd674c62db32d9b0cddb30b57498f91d7e 100755 (executable)
@@ -43,6 +43,7 @@ my %h;
 
     # To reduce glob return, we permit to use file as filter
                my $dir =  (-e $_ and !-d  $_) ? dirname($_) : $_;
+    $dir =File::Spec->rel2abs(Cwd::abs_path($dir));
 
     # Check is git
                if ($dir ne $NB_ROOT and !-d "$dir/.git") {