File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public static void InitializeRepo(this RemoteRepositoryFixture fixture)
80
80
{
81
81
var arguments = new Arguments
82
82
{
83
- Authentication = new AuthenticationInfo ( ) ,
83
+ Authentication = new Authentication ( ) ,
84
84
TargetPath = fixture . LocalRepositoryFixture . RepositoryPath
85
85
} ;
86
86
var options = Options . Create ( arguments ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ namespace GitVersion
7
7
{
8
8
public class Arguments
9
9
{
10
- public AuthenticationInfo Authentication ;
10
+ public Authentication Authentication ;
11
11
12
12
public Config OverrideConfig ;
13
13
public bool HasOverrideConfig ;
Original file line number Diff line number Diff line change
1
+ namespace GitVersion
2
+ {
3
+ public class Authentication
4
+ {
5
+ public string Username ;
6
+ public string Password ;
7
+ }
8
+ }
Original file line number Diff line number Diff line change @@ -123,15 +123,15 @@ public Arguments ParseArguments(string[] commandLineArguments)
123
123
if ( name . IsSwitch ( "u" ) )
124
124
{
125
125
EnsureArgumentValueCount ( values ) ;
126
- if ( arguments . Authentication == null ) arguments . Authentication = new AuthenticationInfo ( ) ;
126
+ if ( arguments . Authentication == null ) arguments . Authentication = new Authentication ( ) ;
127
127
arguments . Authentication . Username = value ;
128
128
continue ;
129
129
}
130
130
131
131
if ( name . IsSwitch ( "p" ) )
132
132
{
133
133
EnsureArgumentValueCount ( values ) ;
134
- if ( arguments . Authentication == null ) arguments . Authentication = new AuthenticationInfo ( ) ;
134
+ if ( arguments . Authentication == null ) arguments . Authentication = new Authentication ( ) ;
135
135
arguments . Authentication . Password = value ;
136
136
continue ;
137
137
}
@@ -413,14 +413,14 @@ private void AddAuthentication(Arguments arguments)
413
413
var username = environment . GetEnvironmentVariable ( "GITVERSION_REMOTE_USERNAME" ) ;
414
414
if ( ! string . IsNullOrWhiteSpace ( username ) )
415
415
{
416
- if ( arguments . Authentication == null ) arguments . Authentication = new AuthenticationInfo ( ) ;
416
+ if ( arguments . Authentication == null ) arguments . Authentication = new Authentication ( ) ;
417
417
arguments . Authentication . Username = username ;
418
418
}
419
419
420
420
var password = environment . GetEnvironmentVariable ( "GITVERSION_REMOTE_PASSWORD" ) ;
421
421
if ( ! string . IsNullOrWhiteSpace ( password ) )
422
422
{
423
- if ( arguments . Authentication == null ) arguments . Authentication = new AuthenticationInfo ( ) ;
423
+ if ( arguments . Authentication == null ) arguments . Authentication = new Authentication ( ) ;
424
424
arguments . Authentication . Username = password ;
425
425
}
426
426
}
You can’t perform that action at this time.
0 commit comments