From 36f105844478076ea669ff889ac6baf8736cc4ad Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Wed, 25 Mar 2015 09:39:23 -0700 Subject: [PATCH] Shotgun: try reset instead of checkout? --- pre_commit/store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/store.py b/pre_commit/store.py index a9197c43..1eaca1c7 100644 --- a/pre_commit/store.py +++ b/pre_commit/store.py @@ -116,7 +116,7 @@ class Store(object): with clean_path_on_failure(dir): cmd_output('git', 'clone', '--no-checkout', url, dir) with cwd(dir): - cmd_output('git', 'checkout', sha) + cmd_output('git', 'reset', sha, '--hard') # Update our db with the created repo with sqlite3.connect(self.db_path) as db: