diff options
Diffstat (limited to 'community/patchwork/0002-remove-uneeded-bashism-from-tools-and-change-path.patch')
-rw-r--r-- | community/patchwork/0002-remove-uneeded-bashism-from-tools-and-change-path.patch | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/community/patchwork/0002-remove-uneeded-bashism-from-tools-and-change-path.patch b/community/patchwork/0002-remove-uneeded-bashism-from-tools-and-change-path.patch index 858568f7be9..ad8d8ae9812 100644 --- a/community/patchwork/0002-remove-uneeded-bashism-from-tools-and-change-path.patch +++ b/community/patchwork/0002-remove-uneeded-bashism-from-tools-and-change-path.patch @@ -1,5 +1,5 @@ diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits -index c84a6305e3..2d34f4f9a9 100755 +index 269dac9..b7bc2ec 100755 --- a/tools/patchwork-update-commits +++ b/tools/patchwork-update-commits @@ -1,4 +1,4 @@ @@ -8,17 +8,22 @@ index c84a6305e3..2d34f4f9a9 100755 # # 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 8098ce825a..b8a1fd2f2a 100755 +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> - # -@@ -21,7 +21,7 @@ +@@ -8,7 +8,7 @@ # Git post-receive hook to update Patchwork patches after Git pushes set -eu |