summaryrefslogtreecommitdiff
path: root/tools/post-receive.hook
diff options
context:
space:
mode:
authorJan Remmet <j.remmet@phytec.de>2016-04-19 10:21:23 +0200
committerStephen Finucane <stephen.finucane@intel.com>2016-05-09 13:55:21 +0100
commit084008122e134401678ffc05882c2c75fd684471 (patch)
treef95869395467a0c76fe28d0872f8498751e6fd16 /tools/post-receive.hook
parent08b1764afc5f33ed52d9b2180c783c0ea193cc7b (diff)
downloadpatchwork-084008122e134401678ffc05882c2c75fd684471.tar
patchwork-084008122e134401678ffc05882c2c75fd684471.tar.gz
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 <j.remmet@phytec.de> Reviewed-by: Stephen Finucane <stephen.finucane@intel.com>
Diffstat (limited to 'tools/post-receive.hook')
-rwxr-xr-xtools/post-receive.hook2
1 files changed, 1 insertions, 1 deletions
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"
}