Skip to content

Commit 714aebd

Browse files
committed
remove warning text bumpers
1 parent 54f37f6 commit 714aebd

File tree

5 files changed

+3
-8
lines changed

5 files changed

+3
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ a couple of annoying blunders:
3131
1. Scan the staged files for added secrets (using the fantastic gitleaks tool)
3232
1. On a push, register the repo with Magnesium, (mg) my git repos management cli.
3333

34-
### Installation
35-
## Template Installation
34+
## Installation
35+
### Template Installation
3636
1. Clone this repo somewhere on your system.
3737
1. Configure git to use these hooks as your template hook directory by adding this line to your global git config: `git config --global init.templatedir`
3838

post-checkout

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
#!/bin/sh
2-
command -v git-lfs >/dev/null 2>&1 || { printf >&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; }
32
git lfs post-checkout "$@"

post-commit

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
#!/bin/sh
2-
command -v git-lfs >/dev/null 2>&1 || { printf >&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; }
32
git lfs post-commit "$@"

post-merge

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
#!/bin/sh
2-
command -v git-lfs >/dev/null 2>&1 || { printf >&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; }
32
git lfs post-merge "$@"

pre-push

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/sh
22

3-
which mg >/dev/null 2> /dev/null || { printf >&2 "\nThis repository is configured for mg but 'mg' was not found on your path. Install it with go install github.com/taigrr/mg/cmd/mg@latest or remove this code from your templates in ~/.config/git/hooks.\n"; exit 2; } && mg register >/dev/null &
4-
3+
mg register >/dev/null &
54
test "$(git lfs track | wc -l)" -gt 0 || exit 0
6-
command -v git-lfs >/dev/null 2>&1 || { printf >&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' and your templates in ~/.config/git/hooks.\n"; exit 2; }
75
git lfs pre-push "$@"

0 commit comments

Comments
 (0)