feat: fix: use correct branch for ref updating

This commit is contained in:
Jose Diaz-Gonzalez
2021-01-09 06:55:43 -05:00
parent f73c927512
commit 97b33a9138

View File

@@ -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
}