          if git:
              run_command(["git", "init"])
          run_command(init_cmd)
          if not analytics:
              # TODO: find a better solution for this?
              run_command(["dvc", "config", "core.analytics", "false"])
          config = load_project_config(dest)
          setup_check_dvc(dest, config)
  
  
 
</s> remove         config = load_project_config(dest)
        setup_check_dvc(dest, config)
 </s> add         config = load_project_config(project_dir)
        setup_check_dvc(project_dir, config) </s> remove @project_cli.command("assets")
def project_assets_cli(
    # fmt: off
    path: Path = Arg(..., help="Path to cloned project", exists=True, file_okay=False),
    # fmt: on
):
    """Use Data Version Control to get the assets for the project."""
    project_assets(path)
 </s> add def project_assets(project_dir: Path) -> None:
    """Fetch assets for a project using DVC if possible. </s> remove         cmd = ["dvc", "get", repo, name, "-o", str(tmp_dir)]
        if verbose:
            cmd.append("--verbose")
        if silent:
            cmd.append("--quiet")
        print(" ".join(cmd))
        run_command(cmd)
        shutil.move(str(tmp_dir / Path(name).name), str(dest))
 </s> add         cmd = f"git clone {repo} {tmp_dir} --no-checkout --depth 1 --config core.sparseCheckout=true"
        run_command(shlex.split(cmd))
        with (tmp_dir / ".git" / "info" / "sparse-checkout").open("w") as f:
            f.write(name)
        run_command(["git", "-C", tmp_dir, "fetch"])
        run_command(["git", "-C", tmp_dir, "checkout"])
        shutil.move(str(tmp_dir / Path(name).name), str(project_dir)) </s> remove             dvc_cmd = ["dvc", "import-url", url, str(dest_path)]
            print(subprocess.check_output(dvc_cmd, stderr=subprocess.DEVNULL))
        except subprocess.CalledProcessError:
            dvc_cmd = ["dvc", "get-url", url, str(dest_path)]
            print(subprocess.check_output(dvc_cmd, stderr=subprocess.DEVNULL))
            run_command(["dvc", "add", str(dest_path)])
 </s> add             try:
                dvc_cmd = ["dvc", "import-url", url, str(dest_path)]
                print(subprocess.check_output(dvc_cmd, stderr=subprocess.DEVNULL))
            except subprocess.CalledProcessError:
                dvc_cmd = ["dvc", "get-url", url, str(dest_path)]
                print(subprocess.check_output(dvc_cmd, stderr=subprocess.DEVNULL))
                run_command(["dvc", "add", str(dest_path)])
          if git:
              run_command(["git", "init"])
          run_command(init_cmd)
          if not analytics:

              run_command(["dvc", "config", "core.analytics", "false"])
          config = load_project_config(dest)
          setup_check_dvc(dest, config)
  
  
keep keep keep keep replace keep keep keep keep keep
 Tidy up, document and add custom clone logic 
spacy/cli/project.py