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 <j.remmet@phytec.de>
Signed-off-by: 's avatarDamien Lespiau <damien.lespiau@intel.com>
parent 6b939acc
......@@ -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"
}
......
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