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>
if head_=$(git symbolic-ref -q HEAD); then
case "$head_" in
refs/heads/*)
if head_=$(git symbolic-ref -q HEAD); then
case "$head_" in
refs/heads/*)
- git rev-parse -q --verify "${head_#refs/heads/#refs/top-bases#}" >/dev/null || exit 0;;
+ git rev-parse -q --verify "${head_/#refs\/heads/refs\/top-bases}" >/dev/null || exit 0;;