projects
/
puppet_vcsrepo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f59c131
)
Style adjustment
author
Aaron Stone
<aaron@serendipity.cx>
Fri, 19 Jul 2013 18:52:12 +0000
(11:52 -0700)
committer
Aaron Stone
<aaron@serendipity.cx>
Sat, 20 Jul 2013 05:12:49 +0000
(22:12 -0700)
lib/puppet/provider/vcsrepo/git.rb
patch
|
blob
|
history
diff --git
a/lib/puppet/provider/vcsrepo/git.rb
b/lib/puppet/provider/vcsrepo/git.rb
index
1ca1751
..
58330f6
100644
(file)
--- a/
lib/puppet/provider/vcsrepo/git.rb
+++ b/
lib/puppet/provider/vcsrepo/git.rb
@@
-239,9
+239,7
@@
Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
# git < 1.6 returns '#{@resource.value(:remote)}/#{revision}'
# git 1.6+ returns 'remotes/#{@resource.value(:remote)}/#{revision}'
branch = at_path { branches.grep /(remotes\/)?#{@resource.value(:remote)}\/#{revision}/ }
- if branch.length > 0
- return branch
- end
+ branch unless branch.empty?
end
def local_branch_revision?(revision = @resource.value(:revision))