summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Barber <ken@bob.sh>2012-04-05 14:55:25 +0100
committerKen Barber <ken@bob.sh>2012-04-05 14:55:25 +0100
commit462b1d69bbc5d6c171dcee02a3d88d304acd630e (patch)
tree737768a8f189ccc8886cfe4224a30b3f16f8b52d
parentd97e19ff90fd966ae322036060caaeb453dfac00 (diff)
parent55e1b9af3dc1411dfc253202214093c461d3f6d4 (diff)
Merge branch 'patch-1'
* patch-1: (#13062) Added clarification that 'revision' can also be used for branches.
-rw-r--r--README.GIT.markdown9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.GIT.markdown b/README.GIT.markdown
index 04ac05b..b63d90b 100644
--- a/README.GIT.markdown
+++ b/README.GIT.markdown
@@ -31,7 +31,7 @@ To get the current [master] HEAD:
source => "git://example.com/repo.git"
}
-For a specific revision (can be a commit SHA or tag):
+For a specific revision or branch (can be a commit SHA, tag or branch name):
vcsrepo { "/path/to/repo":
ensure => present,
@@ -47,6 +47,13 @@ For a specific revision (can be a commit SHA or tag):
revision => '1.1.2rc1'
}
+ vcsrepo { "/path/to/repo":
+ ensure => present,
+ provider => git,
+ source => 'git://example.com/repo.git',
+ revision => 'development'
+ }
+
For sources that use SSH (eg, `username@server:...`)
----------------------------------------------------