Example how to create a shallow clone with just one commit
authorWłodzimierz Gajda <gajdaw@gajdaw.pl>
Wed, 26 Aug 2015 15:10:56 +0000 (17:10 +0200)
committerWłodzimierz Gajda <gajdaw@gajdaw.pl>
Wed, 26 Aug 2015 15:10:56 +0000 (17:10 +0200)
examples/git/shallow-clone-with-just-one-commit.pp [new file with mode: 0644]

diff --git a/examples/git/shallow-clone-with-just-one-commit.pp b/examples/git/shallow-clone-with-just-one-commit.pp
new file mode 100644 (file)
index 0000000..cd5a05d
--- /dev/null
@@ -0,0 +1,7 @@
+vcsrepo { '/tmp/git':
+    ensure   => 'present',
+    provider => 'git',
+    source   => 'https://github.com/git/git.git',
+    branch   => 'v2.2.0',
+    depth    => 1,
+}