mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-09 09:52:27 +01:00
removed pwclient subpackage since now is shipped as separated package. Is no longer part of patchwork repository
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits
|
|
index 269dac9..b7bc2ec 100755
|
|
--- a/tools/patchwork-update-commits
|
|
+++ b/tools/patchwork-update-commits
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/bash
|
|
+#!/bin/sh
|
|
#
|
|
# Patchwork - automated patch tracking system
|
|
# Copyright (C) 2010 Jeremy Kerr <jk@ozlabs.org>
|
|
@@ -18,3 +18,4 @@ while read -r commit; do
|
|
hash=$(git diff "$commit~..$commit" | python "$PW_DIR/hasher.py")
|
|
pwclient update -s Accepted -c "$commit" -h "$hash"
|
|
done
|
|
+
|
|
diff --git a/tools/post-receive.hook b/tools/post-receive.hook
|
|
index 9f2f050..0136ca1 100755
|
|
--- a/tools/post-receive.hook
|
|
+++ b/tools/post-receive.hook
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/bash
|
|
+#!/bin/sh
|
|
|
|
# Patchwork - automated patch tracking system
|
|
# Copyright (C) 2010 martin f. krafft <madduck@madduck.net>
|
|
@@ -8,7 +8,7 @@
|
|
# Git post-receive hook to update Patchwork patches after Git pushes
|
|
set -eu
|
|
|
|
-PW_DIR=/opt/patchwork/patchwork
|
|
+PW_DIR=/usr/share/webapps/patchwork/patchwork
|
|
|
|
#TODO: the state map should really live in the repo's git-config
|
|
STATE_MAP="refs/heads/master:Accepted"
|