gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: gnunet-bugreport: add check for git comm


From: gnunet
Subject: [gnunet] branch master updated: gnunet-bugreport: add check for git commit.
Date: Thu, 21 Nov 2019 13:00:33 +0100

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

ng0 pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 641a5ee4f gnunet-bugreport: add check for git commit.
641a5ee4f is described below

commit 641a5ee4f43a109a84110d90731f18b653a1e394
Author: ng0 <address@hidden>
AuthorDate: Thu Nov 21 11:57:31 2019 +0000

    gnunet-bugreport: add check for git commit.
---
 contrib/scripts/gnunet-bugreport | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/contrib/scripts/gnunet-bugreport b/contrib/scripts/gnunet-bugreport
index a63b816ef..5f090a350 100755
--- a/contrib/scripts/gnunet-bugreport
+++ b/contrib/scripts/gnunet-bugreport
@@ -63,7 +63,6 @@ gcc_check()
     if test -n "$TEST"; then
         VERS=`gcc --version 2>/dev/null | head -n 1`
         infomsg "gcc            : $VERS"
-        # The elif will work in bourne shells, no other shells tested.
     elif test -n "`gcc 2>&1 | tail -1 | awk '{print $1}'`"; then
         VERS=`gcc --version 2>/dev/null | head -n 1`
         infomsg "gcc             : $VERS"
@@ -253,6 +252,17 @@ gnunet011x_check()
     fi
 }
 
+gitcommit_check()
+{
+    TEST=$(git | grep -v "not found" 2> /dev/null)
+    if test -n "$TEST"; then
+        VER=$(git rev-parse HEAD)
+        infomsg "git commit     : $VER"
+    else
+        warningmsg "git commit      : Not a git checkout"
+    fi
+}
+
 gcrypt_check()
 {
     TEST=`$WHICH libgcrypt-config | grep -v "not found" 2> /dev/null`
@@ -539,6 +549,7 @@ main()
     gnunet09x_check
     gnunet010x_check
     gnunet011x_check
+    gitcommit_check
     gcrypt_check
     mysql_check
     pkgconf_check

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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