diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb index a7ae6cfd..f6f03d57 100644 --- a/lib/puppet/provider/vcsrepo/git.rb +++ b/lib/puppet/provider/vcsrepo/git.rb @@ -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) diff --git a/metadata.json b/metadata.json index acddbc19..c1fe608f 100644 --- a/metadata.json +++ b/metadata.json @@ -60,7 +60,8 @@ "operatingsystem": "Ubuntu", "operatingsystemrelease": [ "14.04", - "16.04" + "16.04", + "18.04" ] } ],