diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2018-04-29 09:53:15 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2018-04-29 09:53:15 -0700 |
commit | 6b094bb8cbd34f450078042eab54b4485b3c358b (patch) | |
tree | 390f35aa19cec222a633cb990a170499481bf15e | |
parent | 117b806d621a33cc92fbdb9d610f900852e341f0 (diff) | |
download | dotfiles-6b094bb8cbd34f450078042eab54b4485b3c358b.tar.gz |
comments
-rwxr-xr-x | bin/git-gh-fork | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/git-gh-fork b/bin/git-gh-fork index 2b89f256..77f638ab 100755 --- a/bin/git-gh-fork +++ b/bin/git-gh-fork @@ -36,6 +36,8 @@ use Path::Class; use Sys::Hostname; use autodie; # die if problem reading or writing a file +# TODO generalise to work for gitlab installations too (or: a separate script for those) + my $xdg = File::XDG->new(name => 'net-github'); my $term = Term::ReadLine->new('brand'); @@ -57,7 +59,7 @@ my $git = Git::Wrapper->new("."); my $config = Config::GitLike->new( confname => 'config' ); $config->load_file('.git/config'); -# TODO check all remotes, not just origin +# TODO check all remotes, not just origin (esp. 'upstream') # TODO resolve the URI, taking account of insteadOf and pushInsteadOf # in ~/.gitconfig, and then then match against the URIs github accepts my $origin_url = $config->get(key => "remote.origin.url"); |