def METHOD_NAME(test_storage: FileStorage) -> None:
    repo_storage = get_fresh_repo_files(AWESOME_REPO, test_storage.storage_path)
    with get_repo(repo_storage.storage_path) as repo:
        origin_head_sha = repo.head.commit.hexsha
        # check out abc8bb09858130d6867121c74864ec00ef4d531f
        repo.git.reset("abc8bb09858130d6867121c74864ec00ef4d531f", "--hard")
        assert repo.head.commit.hexsha == "abc8bb09858130d6867121c74864ec00ef4d531f"
        # modify detached head
        repo_storage.save("readme.md", "# new file")
        repo.index.add("readme.md")
        repo.index.commit("mod mod mod")
    # this should reset to the origin
    repo_storage = get_fresh_repo_files(AWESOME_REPO, test_storage.storage_path)
    with get_repo(repo_storage.storage_path) as repo:
        assert origin_head_sha == repo.head.commit.hexsha