summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/patchwork-update-commits2
-rwxr-xr-xtools/post-receive.hook2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits
index d0f63a9..61952c0 100755
--- a/tools/patchwork-update-commits
+++ b/tools/patchwork-update-commits
@@ -29,6 +29,6 @@ fi
git rev-list --reverse "$@" |
while read commit; do
- hash=$(git show "$commit" | python $pwpath/parser.py -#)
+ hash=$(git diff "$commit~..$commit" | python $pwpath/hasher.py)
$pwpath/bin/pwclient update -s Accepted -c "$commit" -h "$hash"
done
diff --git a/tools/post-receive.hook b/tools/post-receive.hook
index 2fd037f..42de90a 100755
--- a/tools/post-receive.hook
+++ b/tools/post-receive.hook
@@ -37,7 +37,7 @@ trap "do_exit=1" INT
get_patchwork_hash() {
local hash
- hash=$(git show -C $1 | python $PWDIR/parser.py --hash)
+ hash=$(git diff "$1~..$1" | python $PWDIR/hasher.py)
echo $hash
test -n "$hash"
}