diff --git a/git_superproject.py b/git_superproject.py index 7f0582cb..89320971 100644 --- a/git_superproject.py +++ b/git_superproject.py @@ -121,7 +121,7 @@ class Superproject(object): print('git fetch missing drectory: %s' % self._work_git, file=sys.stderr) return False - cmd = ['fetch', url, '--force', '--no-tags', '--filter', 'blob:none'] + cmd = ['fetch', url, '--depth', '1', '--force', '--no-tags', '--filter', 'blob:none'] if self._branch: cmd += [self._branch + ':' + self._branch] p = GitCommand(None,