Clone over https if we cannot determine the repository's clone url
This commit is contained in:
parent
418f58f31d
commit
28a4bb4d5f
|
|
@ -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
|
||||||
<Output TaskParameter="ConsoleOutput" PropertyName="UniverseCloneUrl" />
|
Command="git config --get remote.origin.url"
|
||||||
|
ConsoleToMSBuild="true"
|
||||||
|
WorkingDirectory="$(RepositoryRoot)"
|
||||||
|
IgnoreExitCode="true">
|
||||||
|
<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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue