summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE4
-rw-r--r--Modulefile2
-rw-r--r--README.BZR.markdown2
-rw-r--r--README.CVS.markdown2
-rw-r--r--README.GIT.markdown21
-rw-r--r--README.HG.markdown2
-rw-r--r--README.SVN.markdown2
-rw-r--r--lib/puppet/provider/vcsrepo/git.rb4
8 files changed, 29 insertions, 10 deletions
diff --git a/LICENSE b/LICENSE
index a8de5fe..2ee80c8 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
-Copyright (C) 2010 Reductive Labs Inc.
+Copyright (C) 2010-2012 Puppet Labs Inc.
-Reductive Labs can be contacted at: info@reductivelabs.com
+Puppet Labs can be contacted at: info@puppetlabs.com
This program and entire repository is free software; you can
redistribute it and/or modify it under the terms of the GNU
diff --git a/Modulefile b/Modulefile
index e92a864..ce3363c 100644
--- a/Modulefile
+++ b/Modulefile
@@ -1,2 +1,2 @@
name 'puppetlabs/vcsrepo'
-version '0.0.4'
+version '0.1.0'
diff --git a/README.BZR.markdown b/README.BZR.markdown
index dd610db..cc257e9 100644
--- a/README.BZR.markdown
+++ b/README.BZR.markdown
@@ -44,4 +44,4 @@ More Examples
For examples you can run, see `examples/bzr/`
-[1]: http://docs.reductivelabs.com/references/stable/metaparameter.html#require
+[1]: http://docs.puppetlabs.com/references/stable/metaparameter.html#require
diff --git a/README.CVS.markdown b/README.CVS.markdown
index 321c865..10121a7 100644
--- a/README.CVS.markdown
+++ b/README.CVS.markdown
@@ -53,4 +53,4 @@ More Examples
For examples you can run, see `examples/cvs/`
-[1]: http://docs.reductivelabs.com/references/stable/metaparameter.html#require
+[1]: http://docs.puppetlabs.com/references/stable/metaparameter.html#require
diff --git a/README.GIT.markdown b/README.GIT.markdown
index b63d90b..88747c6 100644
--- a/README.GIT.markdown
+++ b/README.GIT.markdown
@@ -53,6 +53,25 @@ For a specific revision or branch (can be a commit SHA, tag or branch name):
source => 'git://example.com/repo.git',
revision => 'development'
}
+
+Check out as a user:
+
+ vcsrepo { "/path/to/repo":
+ ensure => present,
+ provider => git,
+ source => 'git://example.com/repo.git',
+ revision => '0c466b8a5a45f6cd7de82c08df2fb4ce1e920a31',
+ user => 'someUser'
+ }
+
+Keep the repository at the latest revision (note: this will always overwrite local changes to the repository):
+
+ vcsrepo { "/path/to/repo":
+ ensure => latest,
+ provider => git,
+ source => 'git://example.com/repo.git',
+ revision => 'master',
+ }
For sources that use SSH (eg, `username@server:...`)
----------------------------------------------------
@@ -66,5 +85,5 @@ More Examples
For examples you can run, see `examples/git/`
-[1]: http://docs.reductivelabs.com/references/stable/metaparameter.html#require
+[1]: http://docs.puppetlabs.com/references/stable/metaparameter.html#require
diff --git a/README.HG.markdown b/README.HG.markdown
index 55ac88f..b1680c8 100644
--- a/README.HG.markdown
+++ b/README.HG.markdown
@@ -52,4 +52,4 @@ More Examples
For examples you can run, see `examples/hg/`
-[1]: http://docs.reductivelabs.com/references/stable/metaparameter.html#require
+[1]: http://docs.puppetlabs.com/references/stable/metaparameter.html#require
diff --git a/README.SVN.markdown b/README.SVN.markdown
index 3dc852f..489f5bf 100644
--- a/README.SVN.markdown
+++ b/README.SVN.markdown
@@ -44,4 +44,4 @@ More Examples
For examples you can run, see `examples/svn/`
-[1]: http://docs.reductivelabs.com/references/stable/metaparameter.html#require
+[1]: http://docs.puppetlabs.com/references/stable/metaparameter.html#require
diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb
index afd9963..95115c6 100644
--- a/lib/puppet/provider/vcsrepo/git.rb
+++ b/lib/puppet/provider/vcsrepo/git.rb
@@ -96,8 +96,8 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
def update_references
at_path do
- checkout
- git_with_identity('pull', @resource.value(:remote))
+ git_with_identity('fetch', @resource.value(:remote))
+ git_with_identity('fetch', '--tags', @resource.value(:remote))
update_owner_and_excludes
end
end