From: martin f. krafft Date: Fri, 21 May 2010 14:20:55 +0000 (+0200) Subject: fix refname parsing X-Git-Url: https://git.madduck.net/code/fbi-announce.git/commitdiff_plain/cd2912dc476fbde1600908d9d47235a563ca3136?ds=inline;hp=7c4edae57a5b24d39cf106a5f9ec66b8d2a6a7f7 fix refname parsing Signed-off-by: martin f. krafft --- diff --git a/post-receive-hook.sh b/post-receive-hook.sh index 04198d3..a5df638 100755 --- a/post-receive-hook.sh +++ b/post-receive-hook.sh @@ -13,8 +13,9 @@ siblingscript="${realself%/*}/fbi-announce.sh" process_update() { - for commit in $(git rev-parse --not --branches | grep -v ${rev} | - git rev-list --reverse --stdin ${1}..${2}); do + for commit in $(git rev-parse --not --branches | + grep -v $(git rev-parse ${3}) | + git rev-list --reverse --stdin ${1}..${2}); do ${siblingscript} ${3} ${commit} done }