]> gitweb.fluxo.info Git - metadot.git/commitdiff
Implements signed commits
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 9 Mar 2017 04:56:22 +0000 (01:56 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 9 Mar 2017 04:56:22 +0000 (01:56 -0300)
README.mdwn
metadot

index 7c9f3d710226fd5fa26d9dbbba7adeaccc982aa6..64171115646028a6d057668db5480f90332f71ea 100644 (file)
@@ -21,8 +21,7 @@ Get the code:
 
 Then check the source integrity of the latest release:
 
-    tag="`git describe --abbrev=0 --tags`"
-    git tag -v $tag && git checkout $tag
+    git log --show-signature -n 1
 
 Save the metadot repository anywhere but make sure it's available in your `$PATH`.
 I'm my config I use `~/apps/metadot`.
diff --git a/metadot b/metadot
index db6551da6ce976c418506ea3bb706cdfd63a8fca..328cddc7503cba0db0cd51e8dd57a3bcd4c0d4fa 100755 (executable)
--- a/metadot
+++ b/metadot
@@ -124,7 +124,7 @@ if [ -z "$OPT" ]; then
 elif [ "$OPT" == "ls" ]; then
   ls -1 $MODULES
 elif [ "$OPT" == "version" ]; then
-  ( cd $DOT && git log -n 1 )
+  ( cd $DOT && git log --show-signature -n 1 )
 elif [ "$OPT" == "update" ]; then
   if [ -d "$DOT/.git" ]; then
     ( cd $DOT && git pull origin master && git submodule update --init --recursive )