hooks/pre-commit.sh: don't wail on detached head for missing .top* files
commitc32d1dd4fcafad3f9c570adeda580a90d564a3af
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 20 Mar 2009 19:40:07 +0000 (20 20:40 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 20 Mar 2009 19:40:07 +0000 (20 20:40 +0100)
treeabd2064fe0323a9966ec4d314f14f5d26aa7c095
parent4096b92662b36f45f4770a8c0d987e32e157746c
hooks/pre-commit.sh: don't wail on detached head for missing .top* files

This fixes a warning

fatal: ref HEAD is not a symbolic ref

when your HEAD is detached.

And branches under refs/top-bases/ don't need these files either.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
hooks/pre-commit.sh