summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Hayes <eric@inflection.com>2012-07-03 13:58:40 -0400
committerChris Price <chris@puppetlabs.com>2012-10-18 17:18:16 -0700
commitd300f9aed15f1ef72a2c26e213f8672ae6a708cb (patch)
treebdcdc57073ac5cb157c1bdc6ef4b339c094521e3
parent28f819db2e882e78237dbb8f2bfb449be71f720c (diff)
Updated git documentation
-rw-r--r--README.GIT.markdown19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.GIT.markdown b/README.GIT.markdown
index b63d90b..6ddf99c 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:...`)
----------------------------------------------------