From f440daeb8be81517c18f2479a32553570573a379 Mon Sep 17 00:00:00 2001 From: David Brochart Date: Thu, 7 Nov 2019 14:45:26 +0100 Subject: [PATCH] Check out hash, not ref --- repo2docker/contentproviders/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo2docker/contentproviders/git.py b/repo2docker/contentproviders/git.py index 26f25835..35f7b990 100644 --- a/repo2docker/contentproviders/git.py +++ b/repo2docker/contentproviders/git.py @@ -50,7 +50,7 @@ class Git(ContentProvider): raise ValueError("Failed to check out ref {}".format(ref)) # check out ref as it has not been done yet for line in execute_cmd( - ["git", "checkout", ref], cwd=output_dir, capture=yield_output + ["git", "checkout", hash], cwd=output_dir, capture=yield_output ): yield line # If the hash is resolved above, we should be able to reset to it