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.
This commit is contained in:
1 parent
d16ff7fa12
commit
3af1342a9b
1 file changed
+1
@@ -51,6 +51,7 @@ cmd-git-sync() {
|
|||||||
|
|
||||||
if [[ "$FLAG" == "--build" ]]; then
|
if [[ "$FLAG" == "--build" ]]; then
|
||||||
if [[ -n "$GIT_REF" ]]; then
|
if [[ -n "$GIT_REF" ]]; then
|
||||||
|
GIT_REF="$(git -C "/home/dokku/$APP" rev-parse "$GIT_REF")"
|
||||||
plugn trigger receive-app "$APP" "$GIT_REF"
|
plugn trigger receive-app "$APP" "$GIT_REF"
|
||||||
else
|
else
|
||||||
plugn trigger receive-app "$APP"
|
plugn trigger receive-app "$APP"
|
||||||
|
|||||||
Reference in new issue
Block a user