Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Alternative clone script in PowerShell
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
}
@excitoon
Copy link

excitoon commented Dec 28, 2018

@sergey-s-betke This is kinda vanilla clone script, where one can add any options she wants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment