File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -57,31 +57,17 @@ Task("Version")
57
57
. IsDependentOn ( "DogfoodBuild" )
58
58
. Does ( ( ) =>
59
59
{
60
- string url = null ;
61
- string branch = null ;
62
- // We need to use dynamic repositories on Travis
63
- if ( TravisCI . IsRunningOnTravisCI )
64
- {
65
- url = "https://github.com/GitTools/GitVersion.git" ;
66
- branch = EnvironmentVariable ( "BRANCH" ) ;
67
- Information ( "Travis branch: {0}" , branch ) ;
68
- }
69
-
70
60
GitVersion ( new GitVersionSettings
71
61
{
72
62
UpdateAssemblyInfo = true ,
73
63
LogFilePath = "console" ,
74
64
OutputType = GitVersionOutput . BuildServer ,
75
- ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe" ,
76
- Url = url ,
77
- Branch = branch
65
+ ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe"
78
66
} ) ;
79
67
GitVersion assertedVersions = GitVersion ( new GitVersionSettings
80
68
{
81
69
OutputType = GitVersionOutput . Json ,
82
- ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe" ,
83
- Url = url ,
84
- Branch = branch
70
+ ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe"
85
71
} ) ;
86
72
87
73
version = assertedVersions . MajorMinorPatch ;
You can’t perform that action at this time.
0 commit comments