Dist-Zilla-Plugin-GithubMeta

 view release on metacpan or  search on metacpan

t/lib/GitSetup.pm  view on Meta::CPAN


            my $checkdir = path($dir, '.git');
            if (-d $checkdir) {
                note "found $checkdir in $tempdir";
                $in_git = 1;
                last;
            }
            $dir = $dir->parent;
        }
        continue {
            die "too many iterations when traversing $tempdir!"
                if $count++ > 100;
        }

        ok(!$in_git, 'tempdir is not in a real git repository');
    }

    return $tempdir;
}

1;



( run in 0.912 second using v1.01-cache-2.11-cpan-71847e10f99 )