diff options
author | Michael Arnold <github@razorsedge.org> | 2013-08-12 14:53:27 -0700 |
---|---|---|
committer | Michael Arnold <github@razorsedge.org> | 2013-08-12 14:53:27 -0700 |
commit | 4de3254bfc1e6d66f517933857922b9ed4424dd1 (patch) | |
tree | 9877dd021aa6d327182404d48d5c89194cc0cf0a /lib/puppet/provider/vcsrepo | |
parent | 6f7507a2a48ff0a58c7db026760a2eb84e382a77 (diff) | |
download | puppet-vcsrepo-4de3254bfc1e6d66f517933857922b9ed4424dd1.tar.gz puppet-vcsrepo-4de3254bfc1e6d66f517933857922b9ed4424dd1.tar.bz2 |
Fix svn provider to look for '^Revision:'.
SVN provider should check for '^Revision:' and not '^Last Changed
Rev:'. Addresses GitHub Issue #43.
Diffstat (limited to 'lib/puppet/provider/vcsrepo')
-rw-r--r-- | lib/puppet/provider/vcsrepo/svn.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/provider/vcsrepo/svn.rb b/lib/puppet/provider/vcsrepo/svn.rb index bfc9b76..e0d5b21 100644 --- a/lib/puppet/provider/vcsrepo/svn.rb +++ b/lib/puppet/provider/vcsrepo/svn.rb @@ -66,7 +66,7 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo) def latest args = buildargs.push('info', '-r', 'HEAD') at_path do - svn(*args)[/^Last Changed Rev:\s+(\d+)/m, 1] + svn(*args)[/^Revision:\s+(\d+)/m, 1] end end @@ -80,7 +80,7 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo) def revision args = buildargs.push('info') at_path do - svn(*args)[/^Last Changed Rev:\s+(\d+)/m, 1] + svn(*args)[/^Revision:\s+(\d+)/m, 1] end end |