mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Shotgun: try reset instead of checkout?
This commit is contained in:
parent
9a18f6a38d
commit
36f1058444
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue