Skip to content

Commit

Permalink
Merge pull request #382 from david22swan/MODULES-7467
Browse files Browse the repository at this point in the history
(MODULES-7467) Update Vcsrepo to support Ubuntu 18.04
  • Loading branch information
Helen authored Jul 30, 2018
2 parents 1fd1f51 + d9716c5 commit a766296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/puppet/provider/vcsrepo/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def latest_revision
def get_revision(rev = 'HEAD')
unless @resource.value(:source)
status = at_path { git_with_identity('status') }
is_it_new = status =~ %r{Initial commit}
is_it_new = status =~ %r{Initial commit|No commits yet}
if is_it_new
status =~ %r{On branch (.*)}
branch = Regexp.last_match(1)
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"14.04",
"16.04"
"16.04",
"18.04"
]
}
],
Expand Down

0 comments on commit a766296

Please sign in to comment.