Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed a typo and srong regexp
  • Loading branch information
typester committed Jun 2, 2009
1 parent 0d7fc83 commit 8d2db3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ShipIt/Step/UploadGitHub.pm
Expand Up @@ -38,7 +38,7 @@ sub init {
die qq[Can't find git remote url for "$push_to"\n] unless $url;
die qq[remote url "$url" is not github\n] unless $url =~ /github\.com/;

my ($repos) = $url =~ m!([^/]+/[^/]+)\.git$!;
my ($repos) = $url =~ m!([^/:]+/[^/]+)\.git$!;
die qq[Can't detect github repos name] unless $repos;

$self->{repos} = $repos;
Expand All @@ -58,8 +58,8 @@ sub run {
return unless bool_prompt("Upload to GitHub?", "y");

my $github = Net::GitHub::Upload->new(
username => $self->{user},
token => $self->{token},
login => $self->{login},
token => $self->{token},
);
$github->upload(
repos => $self->{repos},
Expand Down

0 comments on commit 8d2db3b

Please sign in to comment.