1
0
mirror of synced 2025-12-25 02:17:36 -05:00
Files
docs/.husky/post-merge
Kevin Heis bbb55769a9 Allow git operations when LFS isn't functioning (#20569)
* Allow git operations when LFS isn't functioning

* Update to be easier to read
2021-07-28 21:35:43 +00:00

12 lines
371 B
Bash
Executable File

#!/bin/sh
[ -n "$CI" ] && exit 0
if command -v git-lfs >/dev/null 2>&1
then
if ! (git lfs post-merge "$@")
then
printf >&2 "\nGitHub Docs requires Git LFS but using the 'git-lfs' on your path failed.\n"
fi
else
printf >&2 "\nGitHub Docs requires Git LFS but 'git-lfs' was not found on your path.\nLearn how to install Git LFS at <https://git.io/JBCId>.\n"
fi