The old 'parser' module used to extract diffs from their surrounding
mbox fluff before hashing this. Seeing as this was only used in the
context of an actual git repo, avoid all of that rigmarole by just using
'git diff', which produces a plain diff, rather than 'git show'.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Tested-by: Tom Rini <trini@konsulko.com>
Closes-bug: #63
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
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"
}