repo remote元素中fetch=“.“或者“..“的理解
在使用repo时,一般情况下,通过remote元素的fetch属性和project元素的name属性就能确定project远程仓库的url,通常情况下就是:
${remote_fetch}/${project_name}.git
1 通常情况下fetch给出的是一个网址:
<manifest><remote name="aosp" fetch="https://android.googlesource.com" review="https://10.10.10.29" /><project path="art" name="platform/art" groups="pdk" />
</manifest>
那么repo就会从下面地址下载art.git
https://android.googlesource.com/platform/art.git
2 fetch给出的是fetch="."或者".."或者"./"等
<manifest><remote name="aosp" fetch="." review="https://10.10.10.29" /><project path="art" name="platform/art" groups="pdk" />
</manifest>
那么这时候去哪下载art.git呢?
这情况下,${remote_fetch}就和manifests.git有关系了,比如manifests.git的地址是:
https://android.googlesource.com/platform/manifests.git
那么,当fetch="."或者"./"就相当于
fetch="https://android.googlesource.com/platform"
那么,当fetch=".."或者"../"就相当于
fetch="https://android.googlesource.com"
参考:
git - repo: manifest.xml: What does the fetch=".." mean? - Stack Overflow
https://groups.google.com/g/android-building/c/mKtph-wOx_w
以下是google官方邮件关于fetch=".."的答复
===========================================================
Conley Owens
2012年10月27日 05:22:46
收件人 android-...@googlegroups.com
It's relative to the manifest's remote.(就是这句话)
~cco3
On Fri, Oct 26, 2012 at 12:49 PM, Cyker Way <cyke...@gmail.com> wrote:
> Hello,
>
> Just a small problem in Android building. The file .repo/manifest.xml has a
> statement like this:
>
>> <remote name="aosp"
>>
>> fetch=".." />
>
>
> And from manifest-format.txt, the fetching URL should be
>
>> ${remote_fetch}/${project_name}.git
>
>
> But how does repo find the base URL of this relative path
> ../${project_name}? Is it a aosp-only builtin?
>
> Thank you!
>
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
repo remote元素中fetch=“.“或者“..“的理解相关推荐
- [html] 谈谈你对input元素中readonly和disabled属性的理解
[html] 谈谈你对input元素中readonly和disabled属性的理解 相同点:都会使文本框变成只读,不可编辑.不同点:1.disabled属性在将input文本框变成只读不可编辑的同时, ...
- JS中同步与异步的理解
你应该知道,javascript语言是一门"单线程"的语言,不像java语言,类继承Thread再来个thread.start就可以开辟一个线程,所以,javascript就像一条 ...
- TensorFlow、Numpy中的axis的理解
TensorFlow中有很多函数涉及到axis,比如tf.reduce_mean(),其函数原型如下: def reduce_mean(input_tensor,axis=None,keepdims= ...
- 高性能计算中并行的概念理解
高性能计算中并行的概念理解 分类: 并行计算高性能计算HPC - General2011-11-09 22:54 932人阅读 评论(0) 收藏 举报 编译器编程parallel优化formsvect ...
- C语言试题四十七之程序定义了N×M的二维数组,并在主函数中自动赋值。请编写函数function(int a[N][M], int m),该函数的功能是:将数组右上半三角元素中的值乘以m。
1. 题目 程序定义了N×M的二维数组,并在主函数中自动赋值.请编写函数function(int a[N][M], int m),该函数的功能是:将数组右上半三角元素中的值乘以m. 2 .温馨提示 C ...
- C语言试题三十五之找出一维整型数组元素中最大的值和它所在的下标,最大的值和它所在的下标通过形参传回。主函数中x是数组名,n 是x中的数据个数,max存放最大值,index存放最大值所在元素的下标。
1. 题目 请编写一个函数function,它的功能是:找出一维整型数组元素中最大的值和它所在的下标,最大的值和它所在的下标通过形参传回.主函数中x是数组名,n 是x中的数据个数,max存放最大值,i ...
- C语言试题二十一之定义n×n的二维数组编写函数 function(int a[][n])功能是:使数组左下半三角元素中的值全部置成0。
1. 题目 定义了n×n的二维数组,并在主函数中自动赋值.请编写函数 function(int a[][n]),该函数的功能是:使数组左下半三角元素中的值全部置成0. 2 .温馨提示 C语言试题汇总里 ...
- react控制组件中元素_React Interview问题:浏览器,组件或元素中呈现了什么?
react控制组件中元素 by Samer Buna 通过Samer Buna React Interview问题:浏览器,组件或元素中呈现了什么? (React Interview Question ...
- React中diff算法的理解
React中diff算法的理解 diff算法用来计算出Virtual DOM中改变的部分,然后针对该部分进行DOM操作,而不用重新渲染整个页面,渲染整个DOM结构的过程中开销是很大的,需要浏览器对DO ...
最新文章
- 界面-工作者线程结构之:异步委托调用
- 虚幻UE4的后处理特效介绍
- 分布式锁能解决 mysql死锁吗_mysql死锁问题分析
- Matrix 矩阵
- 安卓:安卓工程构建及第一个安卓程序运行
- 牛人的博客(机器学习,图像处理,计算机视觉)
- Iterator to list的三种方法
- eventfd(三)
- AF_INET域与AF_UNIX域socket通信原理对比
- 2020HC大会上,这群人在讨论云原生…
- virtio-blk浅析[转]
- URAL 2037 Richness of binary words
- 诺禾-蛋白表达纯化之通关技巧
- 一个轻量的Linux运维监控脚本
- Mariadb数据库
- CPM-Nets: Cross Partial Multi-View Networks
- 第一课 什么是norm?(An Evolutionary Approach to Norms)
- a ^ 3 = b ^ 3 + c ^ 3 + d ^ 3
- 【求助】救救“这个可怜的孩子”
- 入门OpenCV(Python版)(下)