post-merge 360 Bytes
Newer Older
Soraphis's avatar
Soraphis committed
1
2
#!/bin/sh

Soraphis's avatar
Soraphis committed
3
4
5
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-merge.\n"; exit 2; }
git lfs post-merge "$@"

Soraphis's avatar
Soraphis committed
6
# Remove empty assets directory
Soraphis's avatar
Soraphis committed
7
find Assets -type d -empty -prune -exec rm -rf {} \;