summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorBryan Jen <bryan.jen@gmail.com>2016-02-10 09:34:06 -0700
committerBryan Jen <bryan.jen@gmail.com>2016-02-10 09:34:06 -0700
commit818734c0264ffbca9dacc59d358399d819e89ed8 (patch)
tree15d3378c6f77924bc51951176c8697874631cc7c /README.markdown
parentd7197aa5ab8639163c24ed8ba1d758a0969e51da (diff)
parentb8f25cea95317a4b2a622e2799f1aa7ba159bdca (diff)
Merge pull request #282 from Strech/master
Add mirror option for git cloning
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown10
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: