Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Init a Gitpan::Repo object as early as possible.

  • Loading branch information...
commit 3db73f757e418ac41b15fbdbe7b7f96cf5b5fcd9 1 parent fcc08c3
@schwern schwern authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 bin/gitpan-import
View
6 bin/gitpan-import
@@ -106,8 +106,12 @@ for my $dist (@dists) {
# made into a dist called empty string.
next if $dist =~ /^-[\d.]+$/;
+ my $repo = Gitpan::Repo->new(
+ distname => $dist,
+ );
+
if( $opts{github} ) {
- if( !$opts{update} and does_repo_exist("gitpan", $dist) ) {
+ if( !$opts{update} and $repo->exists_on_github ) {
say "$dist already exists on github, skipping";
next;
}
Please sign in to comment.
Something went wrong with that request. Please try again.