def METHOD_NAME():
    """Test a remote repository, with a refspec of 'master'"""
    with TemporaryDirectory() as d:
        app = Repo2Docker(
            repo=URL,
            ref="master",
            dry_run=True,
            run=False,
            # turn off automatic clean up of the checkout so we can inspect it
            # we also set the work directory explicitly so we know where to look
            cleanup_checkout=False,
            git_workdir=d,
        )
        app.initialize()
        app.start()
        # Building the image has already put us in the cloned repository directory
        cmd = ["git", "rev-parse", "HEAD"]
        p = subprocess.run(cmd, stdout=subprocess.PIPE, cwd=d)
        assert p.stdout.strip() == b"703322e9c6635ba1835d3b92eafbabeca0042c3e"
        cmd = ["git", "rev-list", "--count", "HEAD"]
        p = subprocess.run(cmd, stdout=subprocess.PIPE, cwd=d)
        assert p.stdout.strip() == b"100"
        with open(os.path.join(d, "COMMIT")) as fp:
            assert fp.read() == "100\n"