def METHOD_NAME(tmp_dir, dvc, git_dir):
    with git_dir.branch("branch", new=True):
        git_dir.scm_gen("file", "first version", commit="first version")
    dvc.imp(os.fspath(git_dir), "file", "file", rev="branch")
    assert dvc.status(["file.dvc"]) == {}
    with git_dir.branch("branch", new=False):
        git_dir.scm_gen("file", "second version", commit="update file")
    (status,) = dvc.status(["file.dvc"])["file.dvc"]
    assert status == {"changed deps": {f"file ({git_dir})": "update available"}}