summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2015-08-03 13:11:53 -0700
committerDan Willemsen <dwillemsen@google.com>2015-08-03 16:54:16 -0700
commiteeab6860f1c5e542ebabdec2e44185bedad49ed7 (patch)
treeaf793b69bd9939ecbc42d390605c721e6ca97c08 /manifest_xml.py
parent163fdbf2fd6ac8bb1f1e41fb74e68261badce32d (diff)
downloadgit-repo-eeab6860f1c5e542ebabdec2e44185bedad49ed7.tar.gz
Fix shallow clone behavior
The existing code here makes sure that switching clone-depth from on to off actually causes the history to be fully restored. Unfortunately, it does this by fetching the full history every time the fetch spec changes. Switching between two clone-depth="1" branches will fetch far more than the top commit. Instead, when not using clone-depth, pass --depth=2147483647 to git fetch so that it ensures that we have the entire history. That is slightly less efficient, so limit it to only when there are shallow objects in the project by checking for the existance of the 'shallow' file. Change-Id: Iee0cfc9c6992c208344b1d9123769992412db67b
Diffstat (limited to 'manifest_xml.py')
0 files changed, 0 insertions, 0 deletions