diff options
author | Bryan Jen <bryan.jen@gmail.com> | 2016-02-10 09:34:06 -0700 |
---|---|---|
committer | Bryan Jen <bryan.jen@gmail.com> | 2016-02-10 09:34:06 -0700 |
commit | 818734c0264ffbca9dacc59d358399d819e89ed8 (patch) | |
tree | 15d3378c6f77924bc51951176c8697874631cc7c /README.markdown | |
parent | d7197aa5ab8639163c24ed8ba1d758a0969e51da (diff) | |
parent | b8f25cea95317a4b2a622e2799f1aa7ba159bdca (diff) | |
download | puppet-vcsrepo-818734c0264ffbca9dacc59d358399d819e89ed8.tar.gz puppet-vcsrepo-818734c0264ffbca9dacc59d358399d819e89ed8.tar.bz2 |
Merge pull request #282 from Strech/master
Add mirror option for git cloning
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown index e878891..ffc2d7e 100644 --- a/README.markdown +++ b/README.markdown @@ -94,6 +94,16 @@ vcsrepo { '/path/to/repo': } ~~~ +If you want to clone your repository as bare or mirror, you can set `ensure` to 'bare' or 'mirror': + +~~~ +vcsrepo { '/path/to/repo': + ensure => mirror, + provider => git, + source => 'git://example.com/repo.git', +} +~~~ + By default, `vcsrepo` will use the HEAD of the source repository's master branch. To use another branch or a specific commit, set `revision` to either a branch name or a commit SHA or tag. Branch name: |