diff options
author | Eric Hayes <eric@inflection.com> | 2012-07-03 13:58:40 -0400 |
---|---|---|
committer | Chris Price <chris@puppetlabs.com> | 2012-10-18 17:18:16 -0700 |
commit | d300f9aed15f1ef72a2c26e213f8672ae6a708cb (patch) | |
tree | bdcdc57073ac5cb157c1bdc6ef4b339c094521e3 | |
parent | 28f819db2e882e78237dbb8f2bfb449be71f720c (diff) | |
download | puppet-vcsrepo-d300f9aed15f1ef72a2c26e213f8672ae6a708cb.tar.gz puppet-vcsrepo-d300f9aed15f1ef72a2c26e213f8672ae6a708cb.tar.bz2 |
Updated git documentation
-rw-r--r-- | README.GIT.markdown | 19 |
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:...`) ---------------------------------------------------- |