Skip to content

Instantly share code, notes, and snippets.

@FeodorFitsner
Created April 5, 2016 23:37
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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
}
@sergey-s-betke
Copy link

Where is --recursive for submodules?

@excitoon
Copy link

@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