Age | Commit message (Collapse) | Author |
|
Did you happen to enable git-hooks in the git-hooks repo? It should have prevented you from making commits that were not signed off on.
|
|
* No longer using `--severalunseparatewords` (but still accepts them for backwards compatibility)
* Use `<angled brackets>` for mandatory arguments (`[square brackets]` are for optional arguments)
|
|
|
|
|
|
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Issue #33
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Updated README to use markdown & edited for grammar, phrasing, and clarity
|
|
|
|
which really belong in users global .gitignore file.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
It is easy to forget to install git-hooks in a repository you are using.
A commit with no error message could both mean you don't have git-hooks
installed and it can mean that you do have it installed, but your
commit was perfect and there was no errors.
The new option --installglobal creates a default .git template
that is used by all future cloned repositories (and git init'd)
that remind users that the repository doesn't have git-hooks
installed.
A number of projects I have been involved with used git-hooks,
but founds its weakest point was that eventually someone would
re-clone a repo and make commits with errors before turning
git-hooks back on. Another common problem was when we had
multiple git repositories and git-hooks was only installed in
some of them, but not all
While it would be nice to be able to use --instalglobal to
automatically turn on git-hooks on every future repo eventually
some git repository on github would include a hook that would
email <secret stuff> back home and all you would have to do
would be to clone it to activate it which would be a "bad thing",
but it can pester you without harm.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
or when the repository is a bare repository
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
list_hooks_in_dir should report exactly the hooks that would be run with
run_hooks. But the find command in list_hooks_in_dir does not limit itself to
the scheme "folder_name/hook_name" but recurses infinitely through sub
directories reporting all executable files. If your hooks are stored itself in
a git repository then consequently also the files in .git/hooks are reported.
This change sets the search depth exactly to two, so that the correct scripts
are reported, e.g. :
~/.git_hooks/commit-msg/script1
but not e.g. :
~/.git_hook/.git/hooks/commit-msg
~/.git_hooks/script2
~/.git_hooks/commit-msg/dir2/script3
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
using /usr/bin/env
|
|
bash can be placed in /usr/local/bin on FreeBSD
|
|
Augmenting the copyright_year check to be able to check that a copyright...
|
|
exists for a specific entitfy for the current year.
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Fix icefox/git-hooks#9: -L arg to find must precede path to find from
|
|
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
7502217953a8e8e5b56f0a531a16cfc14b825e82
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Fix --about for signed-off-by hook
|
|
|
|
|
|
Lion compability fix
|
|
|
|
not .hooks to match other .git* files/directories.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
The -V option to sort is not include in OS X's sort so special case OS
X.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
that are searched.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
with non-zero, but don't output an error"
This reverts commit 536997d6d30467e2e9e401cca2cf6e7daa499665.
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
the output
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
them with eval.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
the dir. This allows the dir to be a symlink.
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
non-zero, but don't output an error
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|
|
Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
|