lib/origen/revision_control/git.rb in origen-0.0.6 vs lib/origen/revision_control/git.rb in origen-0.0.8

- old
+ new

@@ -192,10 +192,10 @@ end def initialized? File.exist?("#{local}/.git") && git('remote -v', verbose: false).any? { |r| r =~ /#{remote_without_protocol}/ } && - !git('status', verbose: false).any? { |l| l == 'Initial commit' } + !git('status', verbose: false).any? { |l| l =~ /^#? ?Initial commit$/ } end # Delete everything in the given directory, or the whole repo def delete_all(dir = nil, options = {}) paths, options = clean_path(dir, options)