Clone over https if we cannot determine the repository's clone url

This commit is contained in:
Pranav K 2017-08-11 22:32:23 -07:00
parent 418f58f31d
commit 28a4bb4d5f
1 changed files with 8 additions and 3 deletions

View File

@ -68,12 +68,17 @@
Determine the protocol to clone individual repositories over. Clone repositories over https, Determine the protocol to clone individual repositories over. Clone repositories over https,
if Universe was cloned over https if Universe was cloned over https
--> -->
<Exec Command="git config --get remote.origin.url" ConsoleToMSBuild="true" WorkingDirectory="$(RepositoryRoot)"> <Exec
Command="git config --get remote.origin.url"
ConsoleToMSBuild="true"
WorkingDirectory="$(RepositoryRoot)"
IgnoreExitCode="true">
<Output TaskParameter="ConsoleOutput" PropertyName="UniverseCloneUrl" /> <Output TaskParameter="ConsoleOutput" PropertyName="UniverseCloneUrl" />
</Exec> </Exec>
<PropertyGroup> <PropertyGroup>
<_CloneOverHttps Condition="$(UniverseCloneUrl.StartsWith('https'))">true</_CloneOverHttps> <_CloneOverHttps>true</_CloneOverHttps>
<_CloneOverHttps Condition="'$(UniverseCloneUrl)' != '' AND !$(UniverseCloneUrl.StartsWith('https'))">false</_CloneOverHttps>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>