summaryrefslogtreecommitdiff
path: root/README.GIT.markdown
diff options
context:
space:
mode:
authorBruce Williams <bruce@codefluency.com>2010-03-13 00:00:11 -0800
committerBruce Williams <bruce@codefluency.com>2010-03-13 00:00:11 -0800
commita42116b0968cc2f7fe1714564c969ad4674f4f69 (patch)
tree2ad1f4debca2cbcf5c1dd2e1a662a77c2e57bf11 /README.GIT.markdown
parentabd973080207906c32831ff315b9f7a6d2bcb872 (diff)
downloadpuppet-vcsrepo-a42116b0968cc2f7fe1714564c969ad4674f4f69.tar.gz
puppet-vcsrepo-a42116b0968cc2f7fe1714564c969ad4674f4f69.tar.bz2
Convert bare repos to working copy repos and vice-versa
Diffstat (limited to 'README.GIT.markdown')
-rw-r--r--README.GIT.markdown20
1 files changed, 20 insertions, 0 deletions
diff --git a/README.GIT.markdown b/README.GIT.markdown
new file mode 100644
index 0000000..08545aa
--- /dev/null
+++ b/README.GIT.markdown
@@ -0,0 +1,20 @@
+Using vcsrepo with Git
+======================
+
+To create a blank repository
+----------------------------
+
+Define a `vcsrepo` without a `source` or `revision`:
+
+ vcsrepo { "/path/to/repo":
+ ensure: present
+ }
+
+If you're defining this for a central/"official" repository, you'll
+probably want to make it a "bare" repository. Do this by setting
+`ensure` to `bare` instead of `present`:
+
+ vcsrepo { "/path/to/repo":
+ ensure: bare
+ }
+