You can set the depth when doing repo init, but that applies to all projects. You can’t set it only for specific projects.
$ repo init -u git://path/to/manifest -b branch --depth 1
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
On 01/17/2014 06:02 PM, Chunlin Zhang wrote:The intention with the clone-depth attribute in the project entry was to allow override of the value specified on repo init only for specific projects.
David,
I found if I config clone-depth="N" in default section,it does not act
as default value.
For example:
<default remote="aosp" revision="master" clone-depth="2"/>
still got full log in git.
I think it will be handy to some circumstance,for example,CI want to
obtain source code with depth 1(that will be more quick),we can
config clone-depth in "default" section to do this.
If we allow specifying a default depth, this will have the effect that all projects will always be synched with that depth, regardless of what is specified on the command line. Is that what is desired?
In the meantime if your CI wants to always use depth 1 for all projects, you can achieve this by using `--depth 1` when running the repo init command.
<mailto:ba...@google.com>> wrote:
> On Wednesday, November 28, 2012 at 08:30 EST,
> Chunlin Zhang <zhangc...@gmail.com<mailto:zhangc...@gmail.com>> wrote:> ba...@google.com <mailto:ba...@google.com>
>
>> Thanks David for the patch:
>> https://gerrit-review.googlesource.com/#/c/39820/
>> But how can I do with the error of "fatal: branch 'stable' has
>> not been signed" when I want to try the repo version of David?
>
> Run "repo init" with --no-repo-verify.
It works!
>
> --
> Magnus Bäck
<mailto:repo-discuss%2Bunsu...@googlegroups.com> --
---
You received this message because you are subscribed to the Google
Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
----
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
--- You received this message because you are subscribed to a topic in the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/repo-discuss/tQhxV7zshFs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to repo-discuss+unsubscribe@googlegroups.com.