diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-04 05:10:31 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-04 05:10:31 -0400 |
commit | f063ec1279145403da1af4156c5628a646c641fc (patch) | |
tree | f393d50774e17abffaf7026d588ff434dce2c7e3 /modules | |
parent | d33bd8510d992a2d45bf25f8dd91e8f86d3070b6 (diff) | |
download | puppet-tozt-f063ec1279145403da1af4156c5628a646c641fc.tar.gz puppet-tozt-f063ec1279145403da1af4156c5628a646c641fc.zip |
fix
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/tozt/files/new-git-repo | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/tozt/files/new-git-repo b/modules/tozt/files/new-git-repo index 7ed141d..023d384 100755 --- a/modules/tozt/files/new-git-repo +++ b/modules/tozt/files/new-git-repo @@ -24,7 +24,8 @@ package NewGitRepo { my $new_dir = "${\$self->{root}}/$opts{name}"; my $github_user = $self->{github_user}; my $gitlab_user = $self->{gitlab_user}; - my $token = $self->github_token; + my $github_token = $self->github_token; + my $gitlab_token = $self->gitlab_token; local $ENV{GIT_DIR} = $new_dir; @@ -52,12 +53,12 @@ package NewGitRepo { git( 'remote', 'add', 'github', - "https://$github_user:$token\@github.com/$github_user/$opts{name}", + "https://$github_user:$github_token\@github.com/$github_user/$opts{name}", ); git( 'remote', 'add', 'gitlab', - "https://$gitlab_user:$token\@gitlab.com/$gitlab_user/$opts{name}", + "https://$gitlab_user:$gitlab_token\@gitlab.com/$gitlab_user/$opts{name}", ); my $cgitrc = $self->generate_cgitrc(%opts); |