You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
command -v git-lfs >/dev/null 2>&1&& git lfs post-checkout "$@"|| { echo>&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"; }
3
+
ifcommand -v git-lfs >/dev/null 2>&1
4
+
then
5
+
if! (git lfs post-checkout "$@")
6
+
then
7
+
printf>&2"\nGitHub Docs requires Git LFS but using the 'git-lfs' on your path failed.\n"
8
+
fi
9
+
else
10
+
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"
command -v git-lfs >/dev/null 2>&1&& git lfs post-commit "$@"|| { echo>&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"; }
3
+
ifcommand -v git-lfs >/dev/null 2>&1
4
+
then
5
+
if! (git lfs post-commit "$@")
6
+
then
7
+
printf>&2"\nGitHub Docs requires Git LFS but using the 'git-lfs' on your path failed.\n"
8
+
fi
9
+
else
10
+
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"
command -v git-lfs >/dev/null 2>&1&& git lfs post-merge "$@"|| { echo>&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"; }
3
+
ifcommand -v git-lfs >/dev/null 2>&1
4
+
then
5
+
if! (git lfs post-merge "$@")
6
+
then
7
+
printf>&2"\nGitHub Docs requires Git LFS but using the 'git-lfs' on your path failed.\n"
8
+
fi
9
+
else
10
+
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"
Copy file name to clipboardExpand all lines: .husky/pre-push
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
#!/bin/sh
2
2
[ -n"$CI" ] &&exit 0
3
-
command -v git-lfs >/dev/null 2>&1&& git lfs pre-push "$@"|| { echo>&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"; }
3
+
ifcommand -v git-lfs >/dev/null 2>&1
4
+
then
5
+
if! (git lfs pre-push "$@")
6
+
then
7
+
printf>&2"\nGitHub Docs requires Git LFS but using the 'git-lfs' on your path failed.\n"
8
+
fi
9
+
else
10
+
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"
0 commit comments