From 68c60db9d5e7a6339a510a8e03a95576dc5924ae Mon Sep 17 00:00:00 2001 From: Taylor Price Date: Thu, 18 Apr 2019 11:57:37 -0700 Subject: [PATCH] fix ref variable usage --- windows/clone-pull-request.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/clone-pull-request.ps1 b/windows/clone-pull-request.ps1 index 6941ee1..3d2f44a 100644 --- a/windows/clone-pull-request.ps1 +++ b/windows/clone-pull-request.ps1 @@ -1,7 +1,7 @@ Set-Variable -Name "FLAGS" -Value "" 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)) { @@ -12,5 +12,5 @@ if (!(Test-Path .git)) { git fetch $FLAGS origin "+refs/heads/${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