summaryrefslogtreecommitdiff
path: root/README.GIT.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'README.GIT.markdown')
-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:...`)
----------------------------------------------------