From: Bert Wesarg Date: Wed, 25 Mar 2009 11:43:04 GMT Subject: [TopGit PATCH] hooks/pre-commit.sh: fix it again Message-ID: <1237981384-7857-1-git-send-email-bert.wesarg@googlemail.com> First I think the '#' is a leftover, second this is now a bashism. Signed-off-by: Bert Wesarg --- hooks/pre-commit.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/pre-commit.sh b/hooks/pre-commit.sh index a12cfa6..edf2932 100644 --- a/hooks/pre-commit.sh +++ b/hooks/pre-commit.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # TopGit - A different patch queue manager # (c) Petr Baudis 2008 # GPLv2 @@ -20,7 +20,7 @@ tg_util 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;; *) exit 0;; esac -- tg: (fcb488d..) bw/fix-hook-again (depends on: master)