Re: [git pull] vfs.git spurious ENOTDIR fix

Linus Torvalds
2015-08-02T00:42:10Z

On Sat, Aug 1, 2015 at 5:23 PM, Al Viro <viro@zeniv.linux.org.uk> wrote:
>
> BTW, is there any convenient way to have git itself check things like
> that?

I guess you could just do a "pre-push" hook, and have it exit with an
error if the tree isn't clean (to fail the push) or at least warn.

See "man githooks" for details.

Linus