diff options
author | Anthony King <anthonydking@slimroms.net> | 2015-03-28 19:42:39 +0000 |
---|---|---|
committer | Anthony King <anthonydking@slimroms.net> | 2015-03-30 21:54:26 +0000 |
commit | 23ff7df6a759fcc7b52928d0b009beb9ba1310a6 (patch) | |
tree | ee9715463e390f5bd44286ebfc5254d70cf02ffb | |
parent | cc1b1a703ddfc965c0375b80ac6900170fae9b13 (diff) | |
download | git-repo-23ff7df6a759fcc7b52928d0b009beb9ba1310a6.tar.gz |
use the max depth instead of unshallow
This allows the use of older versions of git
Change-Id: I88ea685066603af19896a791829355ddbfa91ffe
-rw-r--r-- | project.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)) |