summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParabola git <git@parabola.nu>2020-12-15 12:00:02 +0000
committerParabola git <git@parabola.nu>2020-12-15 12:00:02 +0000
commit59b3982ba6ae2516915e53668a5eb8971a1d3cde (patch)
treef555016083bda417f47a83643c1e7e17cce1edad
parent782b2f1f870b8bbd4e1ae55480713285d480bd40 (diff)
Update from cron
-rwxr-xr-x.config/git/hooks/post-receive.d/notify-pbot-git-hook6
-rwxr-xr-x.config/git/hooks/update.d/per-branch-no-ff (renamed from abslibre/abslibre.git/hooks/update)4
-rw-r--r--[-rwxr-xr-x].config/git/hooks/update.d/trigger-autobuild.wip (renamed from abslibre/abslibre.git/hooks/commit-msg.wip)2
3 files changed, 9 insertions, 3 deletions
diff --git a/.config/git/hooks/post-receive.d/notify-pbot-git-hook b/.config/git/hooks/post-receive.d/notify-pbot-git-hook
index d6f8859..4a336c8 100755
--- a/.config/git/hooks/post-receive.d/notify-pbot-git-hook
+++ b/.config/git/hooks/post-receive.d/notify-pbot-git-hook
@@ -68,8 +68,8 @@ ParseRefData() # (prev_sha curr_sha ref_file)
# collect push details
local hacker=$( ${LIB_DIR}/last-git-login )
- local author="$( git log -1 --format='%an' ${curr_sha} )"
- local log_msg="$(git log -1 --format='%s' ${curr_sha} )"
+ local author="$( git log -1 --format='%an' ${curr_sha} 2> /dev/null)"
+ local log_msg="$(git log -1 --format='%s' ${curr_sha} 2> /dev/null)"
local n_behind=$(git rev-list --count ${curr_sha}..${prev_sha} 2> /dev/null)
local n_ahead=$( git rev-list --count ${prev_sha}..${curr_sha} 2> /dev/null)
local n_total=$( git rev-list --count ${ref} 2> /dev/null)
@@ -93,4 +93,4 @@ ParseRefData() # (prev_sha curr_sha ref_file)
## main entry ##
-while read ref_data ; do pbot-say "$(ParseRefData ${ref_data})" ; sleep 2 ; done ;
+while read ref_data ; do echo pbot-say "$(ParseRefData ${ref_data})" ; sleep 2 ; done ;
diff --git a/abslibre/abslibre.git/hooks/update b/.config/git/hooks/update.d/per-branch-no-ff
index 88bbee5..a459a62 100755
--- a/abslibre/abslibre.git/hooks/update
+++ b/.config/git/hooks/update.d/per-branch-no-ff
@@ -4,6 +4,10 @@ ref=$1
prev_sha=$2
next_sha=$3
+
+echo "ref=$ref prev_sha=${prev_sha} next_sha=${next_sha}" >> ~git/update-hook.log
+exit 1
+
# prevent re-writing history on master branch
# autobuilder can not handle non-fast-forward commits
[[ "${ref}" != 'master' ]] || \
diff --git a/abslibre/abslibre.git/hooks/commit-msg.wip b/.config/git/hooks/update.d/trigger-autobuild.wip
index 0f8af85..f7fa3ea 100755..100644
--- a/abslibre/abslibre.git/hooks/commit-msg.wip
+++ b/.config/git/hooks/update.d/trigger-autobuild.wip
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -e
+# WIP - trigger autobuilder to rebuild a package
+
#readonly REBUILD_PKGS=(
# libre/lxappearance-obconf-gtk3
#)