hooks/pre-commit.sh: don't stop commits on non-topgit branches
commitfcb488d51e72c7414f9beb40ad06bf529b8b38dc
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 24 Mar 2009 21:16:48 +0000 (24 22:16 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 24 Mar 2009 21:16:48 +0000 (24 22:16 +0100)
treef3267a50ebae97da82cb603e7791f9216311aa9e
parent47a84875b594522b6a6441cc1837f98b92742305
hooks/pre-commit.sh: don't stop commits on non-topgit branches

This is a regression introduced by c32d1dd4fcafad3f9c570adeda580a90d56

"${head_#refs/heads/#refs/top-bases#}" doesn't substitute refs/heads by
refs/top-bases, but strips the prefix of $head_ if it starts with
"refs/heads/#refs/top-bases#".

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