summaryrefslogtreecommitdiff
path: root/README.GIT.markdown
diff options
context:
space:
mode:
authorAaron Stone <aaron@serendipity.cx>2012-10-19 01:35:10 -0700
committerAaron Stone <aaron@serendipity.cx>2012-10-19 01:35:10 -0700
commit2b540b6d2b3c6acab48ad1515b4d5da98d363391 (patch)
tree6a2223ea8ea36790943ec8e433868ebbda6d690c /README.GIT.markdown
parent72df8ecb489c13a0bf7bdb78455e6d523404dd8b (diff)
parent109d181b8ec6130151b2e8144cdaecf986a96075 (diff)
Merge branch 'master' into dummy-provider
Conflicts: lib/puppet/provider/vcsrepo/cvs.rb spec/support/fixture_helpers.rb spec/unit/puppet/provider/vcsrepo/cvs_spec.rb
Diffstat (limited to 'README.GIT.markdown')
-rw-r--r--README.GIT.markdown21
1 files changed, 20 insertions, 1 deletions
diff --git a/README.GIT.markdown b/README.GIT.markdown
index b63d90b..d6b8afe 100644
--- a/README.GIT.markdown
+++ b/README.GIT.markdown
@@ -54,6 +54,25 @@ For a specific revision or branch (can be a commit SHA, tag or branch name):
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