summaryrefslogtreecommitdiff
path: root/lib/puppet/provider/vcsrepo
diff options
context:
space:
mode:
authorBruce Williams <bruce@codefluency.com>2010-03-18 18:09:27 -0700
committerBruce Williams <bruce@codefluency.com>2010-03-18 18:09:27 -0700
commit128e3e4a1dbfa7897c1ec4b6534e79cc2ae30c64 (patch)
treeff3c56b09872cd6ecde71e370618b83e1104ac5b /lib/puppet/provider/vcsrepo
parent463779ca3d297ade2568893372fb6e982fb5ec74 (diff)
Fix typo.
Signed-off-by: Bruce Williams <bruce@codefluency.com>
Diffstat (limited to 'lib/puppet/provider/vcsrepo')
-rw-r--r--lib/puppet/provider/vcsrepo/git.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb
index 952126c..e11733b 100644
--- a/lib/puppet/provider/vcsrepo/git.rb
+++ b/lib/puppet/provider/vcsrepo/git.rb
@@ -41,13 +41,13 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
def revision=(desired)
fetch
- if local_revision_branch?(desired)
+ if local_branch_revision?(desired)
at_path do
git('checkout', desired)
git('pull', 'origin')
end
update_submodules
- elsif remote_revision_branch?(desired)
+ elsif remote_branch_revision?(desired)
at_path do
git('checkout',
'-b', @resource.value(:revision),
@@ -172,7 +172,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
end
def checkout_branch_or_reset
- if remote_revision_branch?
+ if remote_branch_revision?
at_path do
git('checkout', '-b', @resource.value(:revision), '--track', "origin/#{@resource.value(:revision)}")
end