Issue #8347 has been reported by micah -.
----------------------------------------
Bug #8347: vcsrepo: revision parameter should assume HEAD
https://projects.puppetlabs.com/issues/8347
Author: micah -
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Keywords: vcsrepo git
Branch:
Module:
Given this manifest:
<pre>
vcsrepo {"/usr/share/plugins":
ensure => present,
provider => git,
source => "[email protected]:plugins.git";
}
</pre>
The repository is properly checked out initially, but it is never updated with
the latest revision, and instead each puppet run complains:
<pre>
err: /Stage[main]/Vcsrepo[/usr/share/plugins]: Could not evaluate: Execution of
'/usr/bin/git rev-parse ' returned 128: fatal: ambiguous argument '': unknown
revision or path not in the working tree.
Use '--' to separate paths from revisions
</pre>
This is because the revision parameter is not specified, if I specify "revision
=> HEAD" it works as expected.
By default, revision should be set to HEAD, unless specified otherwise, or the
README.GIT.Markdown should clarify that this is required. Right now it makes it
seem like that parameter is not needed:
<pre>
To clone/pull a repository
----------------------------
To get the current [master] HEAD:
vcsrepo { "/path/to/repo":
ensure => present,
provider => git,
source => "git://example.com/repo.git"
}
For a specific revision (can be a commit SHA or tag):
vcsrepo { "/path/to/repo":
ensure => present,
provider => git,
source => 'git://example.com/repo.git',
revision => '0c466b8a5a45f6cd7de82c08df2fb4ce1e920a31'
}
</pre>
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.