当前位置:网站首页>Repo process
Repo process
2022-06-09 13:31:00 【idea studio】
First, repo init creates the .repo directory, clones the git repository https://android.googlesource.com/tools/repo to .repo/repo, and the git repository specified with the -u option to a bare repository at .repo/manifests.git.
After that, it creates the .repo/manifests directory, converts it into a git repository through creating symbolic links from .repo/manifests/.git to .repo/manifests.git.
It then checks out the branch specified in -b, and creates a symbolic link .repo/manifest.xml pointing to the specified file (-m option) in .repo/manifests, by default .repo/manifests/default.xml.
Roughly as follows:
repo init -u $URL -b $BRANCH -m $MANIFEST
mkdir .repo; cd .repo
git clone https://android.googlesource.com/tools/repo
git clone --bare $URL manifests.git
mkdir -p manifests/.git; cd manifests/.git
for i in …/…/manifests.git/*; do ln -s $ı .; done
cd …
git checkout B R A N C H − − . c d . . l n − s m a n i f e s t s / BRANCH -- . cd .. ln -s manifests/ BRANCH−−.cd..ln−smanifests/MANIFEST manifest.xml
You can trace what really happens with repo --trace init …
Then, repo sync clones git repositories to .repo/projects for each project in manifest.xml and local_manifest.xml,
creates working directories with .git having symlinks to the corresponding bare repository, checks out the branch specified in the manifest,
and updates .repo/project.list. The case where the projects are already there is slightly different, essentially performing a git pull --rebase.
边栏推荐
- 机器学习-学习笔记(二) --> 模型评估与选择
- Flag options of redis command:
- 记录下bilibili(b站)小火箭页面上划动画效果的实现
- [noip2015 improvement group] transportation plan
- ES6 basic grammar knowledge
- Tree diameter (supplement: another DP)
- [basic use of grafana]
- Network attacks focus on people's livelihood. How can we effectively defend against DDoS and apt attacks?
- 互联网拓扑是怎样构成的?又代表了什么?
- JVM系列之执行引擎
猜你喜欢
随机推荐
【C语言练习——打印菱形及其变形】
Tree difference
U8g2 graphics library and STM32 migration (I2C, software and hardware)
How is the Internet topology constructed? What does it represent?
[unity TMP external font import problem] TMP Chinese, generate fonts into TMP_ Fontasset FAQs
Compress uploaded pictures with JS
C语言队列--链队列
Comment résoudre le problème du réseau d'entreprise en accélérant la fusion du réseau Cloud pour le troisième anniversaire de la licence 5G?
Fastapi tortoise ORM based on pytest
云呐|资产管理系统有哪些类型,分为哪几方面
C language stack -- chain stack
Zhoubolei annual progress overview of model interpretability 20200805
云呐|公司实物资产如何管理
【C语言练习——调整数组内奇数偶数的顺序】
[idea imports gradle project and starts]
[description of promtail configuration file]
[memcached and redis]
Handlebars. JS template engine usage I
[Prometheus summary.observe method]
Yuna | the importance of server monitoring and the role of monitoring management server









