From 97b33a9138faab50635f69d88cc216bcf6036b7f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 9 Jan 2021 06:55:43 -0500 Subject: [PATCH] feat: fix: use correct branch for ref updating --- plugins/git/internal-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git/internal-functions b/plugins/git/internal-functions index 29b98563e..d271fbf33 100755 --- a/plugins/git/internal-functions +++ b/plugins/git/internal-functions @@ -258,7 +258,7 @@ fn-git-fetch() { git fetch remote "$DOKKU_DEPLOY_BRANCH" else git fetch remote - git update-ref refs/heads/master "$GIT_REF" + git update-ref "refs/heads/$DOKKU_DEPLOY_BRANCH" "$GIT_REF" fi popd > /dev/null }