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