1
0
mirror of synced 2026-01-05 03:06:35 -05:00
Files
docs/.husky/post-commit
Baoshuo Ren 685a69703b chore: remove git.io (#17417)
All links on git.io will stop redirecting after April 29, 2022.

- https://github.blog/changelog/2022-04-25-git-io-deprecation/
2022-04-27 06:43:01 -07:00

12 lines
463 B
Bash
Executable File

#!/bin/sh
[ -n "$CI" ] && exit 0
if command -v git-lfs >/dev/null 2>&1
then
if ! (git lfs post-commit "$@")
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://docs.github.com/en/github/managing-large-files/versioning-large-files/installing-git-large-file-storage>.\n"
fi