def clone_svn_repo(clone_url, destination_dir, fresh_clone = False):
  if fresh_clone:
    # make the repo's directory
    try:
      os.makedirs(destination_dir, 0770)
    except __HOLE__ as e:
      pass
    
    clone_cmdline = ["git", "svn", "clone", clone_url, destination_dir]
  else:
    clone_cmdline = ["git", "svn", "fetch"]
  
  if subprocess.call(clone_cmdline, cwd = destination_dir) != 0:
    raise Repository.CheckoutFailureException(" ".join(clone_cmdline))
dataset/ETHPy150Open rcos/Observatory/observatory/dashboard/models/Repository.py/clone_svn_repo