diff options
Diffstat (limited to 'lib/chef/provider/git.rb')
-rw-r--r-- | lib/chef/provider/git.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/git.rb b/lib/chef/provider/git.rb index 3dd574c401..16d1e54408 100644 --- a/lib/chef/provider/git.rb +++ b/lib/chef/provider/git.rb @@ -51,7 +51,7 @@ class Chef end requirements.assert(:all_actions) do |a| - a.assertion { !(new_resource.revision =~ /^origin\//) } + a.assertion { !(new_resource.revision =~ %r{^origin/}) } a.failure_message Chef::Exceptions::InvalidRemoteGitReference, "Deploying remote branches is not supported. " + "Specify the remote branch as a local branch for " + |