diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-03-22 19:23:09 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-03-22 19:23:09 -0500 |
commit | 1ec52e076d8ea7f714fc2800f9c253c6f56dce41 (patch) | |
tree | e598558762e9ad66e05ffc05bd1c2a64e09e860d /bin/git | |
parent | 089b4c591a993ba9ea3f1be8dac124be48b803d9 (diff) | |
download | conf-1ec52e076d8ea7f714fc2800f9c253c6f56dce41.tar.gz conf-1ec52e076d8ea7f714fc2800f9c253c6f56dce41.zip |
git hub add
Diffstat (limited to 'bin/git')
-rwxr-xr-x | bin/git/git-hub | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/bin/git/git-hub b/bin/git/git-hub index e2bee74..6f2fe7d 100755 --- a/bin/git/git-hub +++ b/bin/git/git-hub @@ -131,8 +131,7 @@ sub run_command_clone { $self->run_command_clone($repo); { my $d = pushd($repo); - git "remote add $owner git://github.com/$owner/$repo.git"; - git "remote update"; + $self->run_command_add($owner, $repo); } } else { @@ -175,6 +174,16 @@ sub run_command_pullreq { ); } +sub run_command_add { + my $self = shift; + my ($owner, $repo) = @_; + die "usage: git hub add <owner> <repo>" + unless @_ == 2; + + git "remote add $owner git://github.com/$owner/$repo.git"; + git "fetch $owner"; +} + sub _github { my $self = shift; my %opts = @_; |