summaryrefslogtreecommitdiff
path: root/examples/git/shallow-clone-with-just-one-commit.pp
diff options
context:
space:
mode:
authorWłodzimierz Gajda <gajdaw@gajdaw.pl>2015-08-26 17:10:56 +0200
committerWłodzimierz Gajda <gajdaw@gajdaw.pl>2015-08-26 17:10:56 +0200
commitdc1f92fe2b4e3dd9a54f3e45e1ae052b9f8e921e (patch)
tree226bd22576529bfe7f11b97180968c67e404edae /examples/git/shallow-clone-with-just-one-commit.pp
parent181e448d234e3ef78481e3f05b5a22e942304fa2 (diff)
downloadpuppet-vcsrepo-dc1f92fe2b4e3dd9a54f3e45e1ae052b9f8e921e.tar.gz
puppet-vcsrepo-dc1f92fe2b4e3dd9a54f3e45e1ae052b9f8e921e.tar.bz2
Example how to create a shallow clone with just one commit
Diffstat (limited to 'examples/git/shallow-clone-with-just-one-commit.pp')
-rw-r--r--examples/git/shallow-clone-with-just-one-commit.pp7
1 files changed, 7 insertions, 0 deletions
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
index 0000000..cd5a05d
--- /dev/null
+++ b/examples/git/shallow-clone-with-just-one-commit.pp
@@ -0,0 +1,7 @@
+vcsrepo { '/tmp/git':
+ ensure => 'present',
+ provider => 'git',
+ source => 'https://github.com/git/git.git',
+ branch => 'v2.2.0',
+ depth => 1,
+}