Created
April 18, 2012 06:09
-
-
Save Cside/2411403 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
my ($repo_url, $to) = @ARGV; | |
#my $repo_url = 'git://github.com/gmarik/vundle.git'; | |
$repo_url || exit; | |
$repo_url =~ s/^git/https/; | |
$repo_url .= '.git' unless $repo_url =~ /\.git$/; | |
use File::Basename qw(basename); | |
my $basename = basename($repo_url); | |
my ($id) = $repo_url =~ m#github\.com/(.+)\.git#; | |
system('wget --no-check-certificate https://github.com/' . $id . "/zipball/maste | |
#system("unzip $basename"); | |
#unlink $basename; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment