From eea439b4b1305449616e8d0d368f3ccff1a7eca9 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 22 Nov 2018 11:52:21 +0100 Subject: [PATCH] git hooks: Tell what to do in another problematic submodules case. Change-Id: I6247df16c021c13c97471cae16d3a1c0f3ddc691 --- .git-hooks/pre-commit | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index 6c87dc890483..1f3d21ebff98 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -257,6 +257,12 @@ To remove the change, you can do: git submodule update $_ +If it fails with 'error: Server does not allow request for unadvertised object', +run the following: + + git submodule sync + git submodule update $_ + EOM exit(1); }