Răsfoiți Sursa

use the max depth instead of unshallow

This allows the use of older versions of git

Change-Id: I88ea685066603af19896a791829355ddbfa91ffe
Anthony King 11 ani în urmă
părinte
comite
23ff7df6a7
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      project.py

+ 2 - 1
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))