gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd2] 02/21: bootstrap: make sure that pre-commit hook really


From: Admin
Subject: [libmicrohttpd2] 02/21: bootstrap: make sure that pre-commit hook really used
Date: Fri, 13 Jun 2025 23:38:10 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd2.

commit cd707e8f4d2dfa3f8707c60fe5bb8c3d91834b20
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
AuthorDate: Wed Jun 11 17:34:29 2025 +0200

    bootstrap: make sure that pre-commit hook really used
---
 bootstrap                 | 3 +++
 contrib/precommit_hook.sh | 0
 2 files changed, 3 insertions(+)

diff --git a/bootstrap b/bootstrap
index 93df79c..d7ac9e8 100755
--- a/bootstrap
+++ b/bootstrap
@@ -152,6 +152,9 @@ if test -d "${GIT_DIR-.git}"; then
           test $? -eq 0 || cp contrib/precommit_hook.sh 
"${GIT_DIR-.git}/hooks/pre-commit" || \
             echo "Failed to install pre-commit git hook" 1>&2
           if test -f "${GIT_DIR-.git}/hooks/pre-commit"; then
+            if test chmod +x "${GIT_DIR-.git}/hooks/pre-commit"; then :; else
+              echo "Failed to mark the pre-commit Git hook as executable" 1>&2
+            fi
             if dir_GIT_HOOKS=`"$GIT" config --get core.hooksPath 2>/dev/null` 
&& test "X$dir_GIT_HOOKS" != "X${GIT_DIR-.git}/hooks"; then
               echo "Installed hook will not be used due to git configuration."
               echo "Consider updating git configuration by running the 
following command:"
diff --git a/contrib/precommit_hook.sh b/contrib/precommit_hook.sh
old mode 100644
new mode 100755

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]