diff --git a/pre_commit/store.py b/pre_commit/store.py index 3262bda2..5932cc2d 100644 --- a/pre_commit/store.py +++ b/pre_commit/store.py @@ -141,7 +141,7 @@ class Store(object): """Clone the given url and checkout the specific ref.""" def clone_strategy(directory): cmd_output( - 'git', 'clone', '--no-checkout', repo, directory, + 'git', 'clone', '--no-checkout', '--depth', '1', repo, directory, env=no_git_env(), ) with cwd(directory):