Alternative clone script in PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(-not $env:appveyor_pull_request_number) { | |
git clone -q --branch=$env:appveyor_repo_branch https://github.com/$env:appveyor_repo_name.git $env:appveyor_build_folder | |
git checkout -qf $env:appveyor_repo_commit | |
} else { | |
git clone -q https://github.com/$env:appveyor_repo_name.git $env:appveyor_build_folder | |
git fetch -q origin +refs/pull/$env:appveyor_pull_request_number/merge: | |
git checkout -qf FETCH_HEAD | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where is
--recursive
for submodules?