Skip to content
This repository has been archived by the owner on Apr 14, 2018. It is now read-only.

fix git check-ref-format call #7

Merged
merged 1 commit into from Sep 18, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion post-receive/dynamic-environments 100644 → 100755
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 }
if ! system('git check-ref-format --branch "#{branchname}"') || $?.exitstatus > 0
unless system("git check-ref-format --branch '#{branchname}' >& /dev/null")
puts %Q{Branchname "#{branchname}" is not valid.}
next
end
Expand Down