From f3fc00d0c8ba1664b82e44e3d881f93da5504bd2 Mon Sep 17 00:00:00 2001 From: Joshua Harlan Lifton Date: Thu, 18 Oct 2012 17:10:23 -0700 Subject: Fix links to documentation and update LICENSE Previous to this commit the documentation and license files referred to Reductive Labs and docs.reductivelabs.com. This commit updates those files to refer to Puppet Labs and docs.puppetlabs.com. --- README.GIT.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.GIT.markdown') diff --git a/README.GIT.markdown b/README.GIT.markdown index b63d90b..95a9bc3 100644 --- a/README.GIT.markdown +++ b/README.GIT.markdown @@ -66,5 +66,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 -- cgit v1.2.3 From d300f9aed15f1ef72a2c26e213f8672ae6a708cb Mon Sep 17 00:00:00 2001 From: Eric Hayes Date: Tue, 3 Jul 2012 13:58:40 -0400 Subject: Updated git documentation --- README.GIT.markdown | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'README.GIT.markdown') 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:...`) ---------------------------------------------------- -- cgit v1.2.3