From 5b5af353637e6679cb1938b0ef2308e847a8bd6d Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Wed, 3 Jun 2020 19:37:02 +0200 Subject: [PATCH] fix dockerhub submodules --- hooks/post_checkout | 5 +++++ package.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 hooks/post_checkout diff --git a/hooks/post_checkout b/hooks/post_checkout new file mode 100755 index 00000000..a01590a5 --- /dev/null +++ b/hooks/post_checkout @@ -0,0 +1,5 @@ +#!/bin/bash +# Docker hub does a recursive clone, then checks the branch out, +# so when a PR adds a submodule (or updates it), it fails. + +git submodule update --init diff --git a/package.json b/package.json index 509c4915..e2adb7a9 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "url": "https://github.com/ohmyform/ohmyform.git" }, "engines": { - "yarn": "1.x" + "yarn": "1.x", + "node": "12.x" }, "scripts": { "heroku-prebuild": "scripts/heroku/prebuild.sh",