From 9530eac7705f45e66a56d9fbaf406fd19cbb35c5 Mon Sep 17 00:00:00 2001 From: Andri Steiner Date: Mon, 21 Oct 2013 10:21:55 +0200 Subject: [PATCH] dash does not support multi-digit file descriptors --- post-receive/dynamic-environments | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post-receive/dynamic-environments b/post-receive/dynamic-environments index a6e7206..ab0bd41 100755 --- a/post-receive/dynamic-environments +++ b/post-receive/dynamic-environments @@ -41,7 +41,7 @@ $stdin.each_line do |line| # Check if the branch name is valid. branchname = refname.sub(%r{^refs/heads/(.*$)}) { $1 } - unless system("git check-ref-format --branch '#{branchname}' >& /dev/null") + unless system("git check-ref-format --branch '#{branchname}' > /dev/null 2>&1") puts %Q{Branchname "#{branchname}" is not valid.} next end