chiark / gitweb /
Check for pre-commit hook existence.
authorRussell Steicke <russellsteicke@gmail.com>
Sun, 3 Aug 2008 14:14:01 +0000 (22:14 +0800)
committerPetr Baudis <pasky@suse.cz>
Sun, 3 Aug 2008 14:26:03 +0000 (16:26 +0200)
commit30c34d664cbd6d27272728b3619425ea3ef8744d
treed4d48d23b68bdb23ab5af109c8e0b119561817eb
parent14561a783f2bbf3dc21cdbdfe06296285c4f4052
Check for pre-commit hook existence.

Running tg in a repo without an active pre-commit hook fails
saying

  grep: .git/hooks/pre-commit: No such file or directory
  cat: .git/hooks/pre-commit: No such file or directory

Even "tg help" does this!  So add extra checks for existence
of the pre-commit hook.
tg.sh