mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-23 07:16:21 +00:00
use the max depth instead of unshallow
This allows the use of older versions of git Change-Id: I88ea685066603af19896a791829355ddbfa91ffe
This commit is contained in:
parent
cc1b1a703d
commit
23ff7df6a7
@ -1865,7 +1865,8 @@ class Project(object):
|
|||||||
|
|
||||||
shallowfetch = self.config.GetString('repo.shallowfetch')
|
shallowfetch = self.config.GetString('repo.shallowfetch')
|
||||||
if shallowfetch and shallowfetch != ' '.join(spec):
|
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()
|
bare=True, ssh_proxy=ssh_proxy).Wait()
|
||||||
if depth:
|
if depth:
|
||||||
self.config.SetString('repo.shallowfetch', ' '.join(spec))
|
self.config.SetString('repo.shallowfetch', ' '.join(spec))
|
||||||
|
Loading…
Reference in New Issue
Block a user