Skip to content

Instantly share code, notes, and snippets.

@FeodorFitsner
Created April 5, 2016 23:37
Show Gist options
  • Select an option

  • Save FeodorFitsner/99d5ba9b6171063804f9db08534becb2 to your computer and use it in GitHub Desktop.

Select an option

Save FeodorFitsner/99d5ba9b6171063804f9db08534becb2 to your computer and use it in GitHub Desktop.
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
Copy Markdown

Where is --recursive for submodules?

@excitoon

Copy link
Copy Markdown

@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