mirror of
https://github.com/JHUAPL/kaiju.git
synced 2026-01-08 22:58:05 -05:00
Adjusting git hooks for gitlfs
This commit is contained in:
@@ -2,3 +2,7 @@
|
||||
#
|
||||
|
||||
touch CMakeLists.txt
|
||||
|
||||
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-checkout.\n"; exit 2; }
|
||||
git lfs post-checkout "$@"
|
||||
|
||||
|
||||
@@ -2,3 +2,7 @@
|
||||
#
|
||||
|
||||
touch CMakeLists.txt
|
||||
|
||||
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-commit.\n"; exit 2; }
|
||||
git lfs post-commit "$@"
|
||||
|
||||
|
||||
@@ -2,3 +2,7 @@
|
||||
#
|
||||
|
||||
touch CMakeLists.txt
|
||||
|
||||
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 "$@"
|
||||
|
||||
|
||||
6
gitHookScripts/pre-push
Normal file
6
gitHookScripts/pre-push
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
|
||||
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/pre-push.\n"; exit 2; }
|
||||
git lfs pre-push "$@"
|
||||
|
||||
Reference in New Issue
Block a user