From 084008122e134401678ffc05882c2c75fd684471 Mon Sep 17 00:00:00 2001 From: Jan Remmet Date: Tue, 19 Apr 2016 10:21:23 +0200 Subject: post-receive.hook: rename detection patches which descripes renamed files show different hashes with git show and pwclient. Use git show -C (Detect copies as well as renames.) Signed-off-by: Jan Remmet Reviewed-by: Stephen Finucane --- tools/post-receive.hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/post-receive.hook b/tools/post-receive.hook index 8f05b8d..78ddf9b 100755 --- a/tools/post-receive.hook +++ b/tools/post-receive.hook @@ -23,7 +23,7 @@ trap "do_exit=1" INT get_patchwork_hash() { local hash - hash=$(git show $1 | python $PWDIR/parser.py --hash) + hash=$(git show -C $1 | python $PWDIR/parser.py --hash) echo $hash test -n "$hash" } -- cgit v1.2.3