summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorAnthony King <anthonydking@slimroms.net>2015-03-28 19:42:39 +0000
committerAnthony King <anthonydking@slimroms.net>2015-03-30 21:54:26 +0000
commit23ff7df6a759fcc7b52928d0b009beb9ba1310a6 (patch)
treeee9715463e390f5bd44286ebfc5254d70cf02ffb /project.py
parentcc1b1a703ddfc965c0375b80ac6900170fae9b13 (diff)
downloadgit-repo-23ff7df6a759fcc7b52928d0b009beb9ba1310a6.tar.gz
use the max depth instead of unshallow
This allows the use of older versions of git Change-Id: I88ea685066603af19896a791829355ddbfa91ffe
Diffstat (limited to 'project.py')
-rw-r--r--project.py3
1 files changed, 2 insertions, 1 deletions
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):
1865 1865
1866 shallowfetch = self.config.GetString('repo.shallowfetch') 1866 shallowfetch = self.config.GetString('repo.shallowfetch')
1867 if shallowfetch and shallowfetch != ' '.join(spec): 1867 if shallowfetch and shallowfetch != ' '.join(spec):
1868 GitCommand(self, ['fetch', '--unshallow', name] + shallowfetch.split(), 1868 GitCommand(self, ['fetch', '--depth=2147483647', name]
1869 + shallowfetch.split(),
1869 bare=True, ssh_proxy=ssh_proxy).Wait() 1870 bare=True, ssh_proxy=ssh_proxy).Wait()
1870 if depth: 1871 if depth:
1871 self.config.SetString('repo.shallowfetch', ' '.join(spec)) 1872 self.config.SetString('repo.shallowfetch', ' '.join(spec))