File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ namespace GitVersion
4
4
using System . Collections . Generic ;
5
5
using System . Collections . Specialized ;
6
6
using System . ComponentModel ;
7
+ using System . IO ;
7
8
using System . Linq ;
8
9
using System . Text . RegularExpressions ;
9
10
@@ -42,7 +43,8 @@ public static Arguments ParseArguments(List<string> commandLineArguments)
42
43
} ;
43
44
}
44
45
45
- if ( commandLineArguments . Count == 1 && ! ( commandLineArguments [ 0 ] . StartsWith ( "-" ) || commandLineArguments [ 0 ] . StartsWith ( "/" ) ) )
46
+ if ( commandLineArguments . Count == 1 && ! ( commandLineArguments [ 0 ] . StartsWith ( "-" ) ||
47
+ ( commandLineArguments [ 0 ] . StartsWith ( "/" ) && Path . DirectorySeparatorChar != '/' ) ) )
46
48
{
47
49
return new Arguments
48
50
{
@@ -52,7 +54,7 @@ public static Arguments ParseArguments(List<string> commandLineArguments)
52
54
53
55
List < string > namedArguments ;
54
56
var arguments = new Arguments ( ) ;
55
- if ( firstArgument . StartsWith ( "-" ) || firstArgument . StartsWith ( "/" ) )
57
+ if ( firstArgument . StartsWith ( "-" ) || ( firstArgument . StartsWith ( "/" ) && Path . DirectorySeparatorChar != '/' ) )
56
58
{
57
59
arguments . TargetPath = Environment . CurrentDirectory ;
58
60
namedArguments = commandLineArguments ;
You can’t perform that action at this time.
0 commit comments