The .git/hooks/commit-msg Git hook may already exist and not be
writable. E.g., in our environment it is a symbolic link to a script in
/usr/share.

Signed-off-by: Peter Kjellerstedt <[email protected]>
---
 meta-oe/recipes-support/ceres-solver/ceres-solver_2.2.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/ceres-solver/ceres-solver_2.2.0.bb 
b/meta-oe/recipes-support/ceres-solver/ceres-solver_2.2.0.bb
index 63500def05..0a8f237180 100644
--- a/meta-oe/recipes-support/ceres-solver/ceres-solver_2.2.0.bb
+++ b/meta-oe/recipes-support/ceres-solver/ceres-solver_2.2.0.bb
@@ -16,7 +16,7 @@ do_configure:prepend() {
     # will try to fetch 
https://ceres-solver-review.googlesource.com/tools/hooks/commit-msg durind 
do_configure
     # which sometimes gets stuck (as there is no TIMEOUT set in DOWNLOAD)
     # and we really don't need Gerrit's Change-Id tags when just building this
-    touch ${S}/.git/hooks/commit-msg
+    touch ${S}/.git/hooks/commit-msg 2>/dev/null || :
 }
 
 # We don't want path to eigen3 in ceres-solver RSS to be
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#124805): 
https://lists.openembedded.org/g/openembedded-devel/message/124805
Mute This Topic: https://lists.openembedded.org/mt/118091763/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to