Skip to content

Commit a766296

Browse files
author
Helen
authored
Merge pull request #382 from david22swan/MODULES-7467
(MODULES-7467) Update Vcsrepo to support Ubuntu 18.04
2 parents 1fd1f51 + d9716c5 commit a766296

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/puppet/provider/vcsrepo/git.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def latest_revision
505505
def get_revision(rev = 'HEAD')
506506
unless @resource.value(:source)
507507
status = at_path { git_with_identity('status') }
508-
is_it_new = status =~ %r{Initial commit}
508+
is_it_new = status =~ %r{Initial commit|No commits yet}
509509
if is_it_new
510510
status =~ %r{On branch (.*)}
511511
branch = Regexp.last_match(1)

metadata.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
"operatingsystem": "Ubuntu",
6161
"operatingsystemrelease": [
6262
"14.04",
63-
"16.04"
63+
"16.04",
64+
"18.04"
6465
]
6566
}
6667
],

0 commit comments

Comments
 (0)