def commits?(path)
      res = false
      Dir.chdir(path) do
        _stdout, _stderr, exit_status = Open3.capture3( "git rev-parse HEAD" )
        res = (exit_status.to_i.zero?)
      end
      res
    end
def commits?(path)
      res = false
      Dir.chdir(path) do
        _stdout, _stderr, exit_status = Open3.capture3( "git rev-parse HEAD" )
        res = (exit_status.to_i.zero?)
      end
      res
    end
Check if the repositories already holds some commits