From 23ff7df6a759fcc7b52928d0b009beb9ba1310a6 Mon Sep 17 00:00:00 2001 From: Anthony King Date: Sat, 28 Mar 2015 19:42:39 +0000 Subject: [PATCH] use the max depth instead of unshallow This allows the use of older versions of git Change-Id: I88ea685066603af19896a791829355ddbfa91ffe --- project.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project.py b/project.py index 1245fa2a..d11a3c94 100644 --- a/project.py +++ b/project.py @@ -1865,7 +1865,8 @@ class Project(object): shallowfetch = self.config.GetString('repo.shallowfetch') if shallowfetch and shallowfetch != ' '.join(spec): - GitCommand(self, ['fetch', '--unshallow', name] + shallowfetch.split(), + GitCommand(self, ['fetch', '--depth=2147483647', name] + + shallowfetch.split(), bare=True, ssh_proxy=ssh_proxy).Wait() if depth: self.config.SetString('repo.shallowfetch', ' '.join(spec))