Skip to content
This repository was archived by the owner on Apr 14, 2018. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion post-receive/dynamic-environments
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down