summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorStrech (Sergey Fedorov) <oni.strech@gmail.com>2015-12-22 23:02:26 +0100
committerStrech (Sergey Fedorov) <oni.strech@gmail.com>2015-12-22 23:02:26 +0100
commitb8f25cea95317a4b2a622e2799f1aa7ba159bdca (patch)
treeb25b192cfe2c2c37215d65c0eb63bed7b8bccf4b /README.markdown
parent268e599839f86f7d5dd4352e73c0f698dc4b0c18 (diff)
Add mirror option for git cloning
Example: vcsrepo { '/path/to/repo': ensure => mirror, provider => git, source => 'git://example.com/repo.git', }
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: