Go to file
Conley Owens f97e8383a3 Use depth flag when fetching
Currently, we only use the depth flag when cloning.  The result is that when
new project history has merges, the entire history of the merged branch is
brought in and the project becomes unshallow very quickly.  --depth and
clone-depth are often used to save on space, not just network load, so this
seems less than ideal.

This change uses --depth on every fetch (when the user has depth specified),
not just the initial clone.  The result is that the given project stays
consistently shallow as opposed to growing over time, especially when merges
are involved.

Change-Id: Iac706cfdad4a555c72f9d9f1119195d38d91df12
2015-01-22 01:20:22 +00:00
docs Support specifying non-HEADS refs as upstream 2014-10-09 13:41:51 -06:00
hooks Update the commit-msg hook to the version from Gerrit 2.8.2 2014-07-15 11:30:06 -07:00
subcmds If revision is sha hash and dest-branch is defined, use it for starting branch 2014-10-27 12:25:05 +00:00
tests Fix inconsistent indentation 2012-11-14 11:38:57 +09:00
.gitattributes Protect line endings in shell scripts 2013-02-11 22:13:39 +01:00
.gitignore Add repoc to the .gitignore file 2013-03-08 01:18:08 +00:00
.project Set correct name in PyDev and Eclipse project config 2013-04-19 09:35:43 +09:00
.pydevproject Set correct name in PyDev and Eclipse project config 2013-04-19 09:35:43 +09:00
.pylintrc Disable warning about locally disabling pylint warnings 2013-05-15 18:06:06 +09:00
color.py add a global --color option 2014-12-30 18:50:05 -05:00
command.py repo: Support multiple branches for the same project. 2013-10-14 15:34:32 -07:00
COPYING Initial Contribution 2008-10-21 07:00:00 -07:00
editor.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
error.py More verbose errors for NoManifestExceptions. 2014-03-11 05:33:43 +00:00
git_command.py Decode git version 2014-08-20 11:47:10 +05:30
git_config.py Support persistent-http(s) review urls 2014-10-23 15:42:09 -07:00
git_refs.py Fix some python3 encoding issues 2013-11-21 06:03:22 +00:00
git_ssh Don't allow git fetch to start ControlMaster 2010-10-29 08:15:14 -07:00
main.py add a global --color option 2014-12-30 18:50:05 -05:00
manifest_xml.py Merge "Add extend-project tag to support adding groups to an existing project" 2014-09-18 23:09:08 +00:00
pager.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
progress.py Support units in progress messages 2011-09-19 14:52:57 -07:00
project.py Use depth flag when fetching 2015-01-22 01:20:22 +00:00
pyversion.py Move Python version checking to a separate module 2013-05-23 07:28:53 +00:00
repo Change implementation of cleanup in case of clone failure during "repo init" 2014-09-03 13:56:04 +05:30
SUBMITTING_PATCHES Add pylint configuration and instructions 2012-10-24 10:18:13 +09:00
trace.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
wrapper.py Add wrapper module 2014-01-30 15:17:09 -08:00