Ver Fonte

update files

Oz N Tiram há 9 anos atrás
pai
commit
dbbf2e2501
2 ficheiros alterados com 3 adições e 1 exclusões
  1. 0 0
      hooks/post-update
  2. 3 1
      hooks/post-update.sh

+ 0 - 0
hooks/postpush → hooks/post-update


+ 3 - 1
hooks/postpush.sh → hooks/post-update.sh

@@ -1,3 +1,6 @@
+# This script is copyright Oz N Tiram <nahumoz@gmail.com>
+# It is distributed under the terms of GPLv3
+
 #!/bin/bash
 HEAD=$1
 # CUT, UNIX
@@ -8,7 +11,6 @@ BRANCH=($1)
 BRANCH=${BRANCH[2]}
 
 REST_OF_JSON=$(git --no-pager log -n 1 --format='{"hashes":{"commit":"%H", "tree":"%T", "parents":"%P" }, "author":{"date": "%ai", "name":"%an", "email":"%ae" }, "committer":{"date": "%ci", "name": "%cn", "email":"%ce" }')
-
 REST_OF_JSON=$REST_OF_JSON:"branch:"${BRANCH}"}"
 
 echo $REST_OF_JSON > /home/ozn/bla