Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
[IMP] Switch to --single-branch --depth=1 (#401)
Browse files Browse the repository at this point in the history
* [IMP] Switch git clone for archive download in depends download
  • Loading branch information
lasley authored and pedrobaeza committed Jan 4, 2018
1 parent 8469598 commit ebf95a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion travis/clone_oca_dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def parse_depfile(depfile, owner='OCA'):
def git_checkout(deps_checkout_dir, reponame, url, branch):
checkout_dir = osp.join(deps_checkout_dir, reponame)
if not osp.isdir(checkout_dir):
command = ['git', 'clone', '-q', url, '-b', branch, checkout_dir]
command = ['git', 'clone', '-q', url, '-b', branch,
'--single-branch', '--depth=1', checkout_dir]
else:
command = ['git', '--git-dir=' + os.path.join(checkout_dir, '.git'),
'--work-tree=' + checkout_dir, 'pull', '--ff-only',
Expand Down

0 comments on commit ebf95a4

Please sign in to comment.