Merge pull request #14 from drpebcak/windows-pr-clone [CI SKIP]
fix ref variable usage
This commit is contained in:
commit
584c0ee731
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Set-Variable -Name "FLAGS" -Value ""
|
Set-Variable -Name "FLAGS" -Value ""
|
||||||
if ($Env:PLUGIN_DEPTH) {
|
if ($Env:PLUGIN_DEPTH) {
|
||||||
Set-Variable -Name "FLAGS" -Value "--depth=$Env:PLUGIN_DEPTH"
|
Set-Variable -Name "FLAGS" -Value "--depth=$Env:PLUGIN_DEPTH"
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(Test-Path .git)) {
|
if (!(Test-Path .git)) {
|
||||||
@ -12,5 +12,5 @@ if (!(Test-Path .git)) {
|
|||||||
git fetch $FLAGS origin "+refs/heads/${Env:DRONE_COMMIT_BRANCH}:"
|
git fetch $FLAGS origin "+refs/heads/${Env:DRONE_COMMIT_BRANCH}:"
|
||||||
git checkout $Env:DRONE_COMMIT_BRANCH
|
git checkout $Env:DRONE_COMMIT_BRANCH
|
||||||
|
|
||||||
git fetch origin $Env:DRONE_COMMIT_REF:
|
git fetch origin "${Env:DRONE_COMMIT_REF}:"
|
||||||
git rebase $Env:DRONE_COMMIT_SHA
|
git rebase $Env:DRONE_COMMIT_SHA
|
||||||
|
Loading…
Reference in New Issue
Block a user