Commit d5add7d0 authored by Jan Remmet's avatar Jan Remmet Committed by Damien Lespiau

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: 's avatarJan Remmet <>
Signed-off-by: 's avatarDamien Lespiau <>
parent 6b939acc
......@@ -23,7 +23,7 @@ trap "do_exit=1" INT
local hash
hash=$(git show $1 | python $PWDIR/ --hash)
hash=$(git show -C $1 | python $PWDIR/ --hash)
echo $hash
test -n "$hash"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment