puppetlabs/puppetlabs-vcsrepo — pull request #109 by mikegerwitz (2013-12-03 14:56:48+00:00)
Title: Git provider on_branch? trailing newline

I submitted a patch yesterday for using --abbrev-ref for on_branch?; unfortunately, there is a trailing newline, which causes problems when the repository already exists:

```
Error: /Stage[main]//Vcsrepo[...]: Could not evaluate: Execution of '/usr/local/bin/git rev-parse origin/master
' returned 128: fatal: ambiguous argument 'origin/master
': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
origin/master
```