App-gh
view release on metacpan or search on metacpan
lib/App/gh/Command/Fork.pm view on Meta::CPAN
else {
$repo = shift;
}
}
my $gh_id = App::gh->config->github_id;
my $gh_token = App::gh->config->github_token
|| App::gh->config->github_password;
unless( $gh_id && $gh_token ) {
die "Github credentials not found. Cannot fork repository.\n";
}
unless ( $repo ) {
# detect .git directory
if ( -e ".git/config" ) {
my $config = App::gh->config->current();
for my $remote ( values %{ $config->{remote} } ) {
# git://github.com/miyagawa/Tatsumaki.git
# http://github.com/miyagawa/Tatsumaki.git
( run in 0.791 second using v1.01-cache-2.11-cpan-4d50c553e7e )