From 3af1342a9b99635d106e77d67e7df2faba2808f9 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 17 Jan 2021 17:29:21 -0500 Subject: [PATCH] fix: expand git-ref to the full commit sha If using a branch, git commands that interact with worktrees may fail for newer versions of git. --- plugins/git/internal-functions | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/git/internal-functions b/plugins/git/internal-functions index 73c3297ad..09cca5873 100755 --- a/plugins/git/internal-functions +++ b/plugins/git/internal-functions @@ -51,6 +51,7 @@ cmd-git-sync() { if [[ "$FLAG" == "--build" ]]; then if [[ -n "$GIT_REF" ]]; then + GIT_REF="$(git -C "/home/dokku/$APP" rev-parse "$GIT_REF")" plugn trigger receive-app "$APP" "$GIT_REF" else plugn trigger receive-app "$APP"