summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-04 05:10:31 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-04 05:10:31 -0400
commitf063ec1279145403da1af4156c5628a646c641fc (patch)
treef393d50774e17abffaf7026d588ff434dce2c7e3 /modules
parentd33bd8510d992a2d45bf25f8dd91e8f86d3070b6 (diff)
downloadpuppet-tozt-f063ec1279145403da1af4156c5628a646c641fc.tar.gz
puppet-tozt-f063ec1279145403da1af4156c5628a646c641fc.zip
fix
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/tozt/files/new-git-repo7
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);