How can I avoid fetching of .repo/manifest.xml?

谁都会走 提交于 2019-12-11 04:58:22

问题


How can I avoid fetching of .repo/manifest.xml (which is modified intentionally)? I do not want to get it modified during a repo sync.

  1. I have done a repo init, This step is completed.
  2. I did a small modification on the manifest.xml, removed some projects which are not required for a sync.
  3. When we go for a repo sync, it fetches the repo and removing the modifications done in step 2.

How to avoid this fetching of manifest? Purpose is to avoid syncing of some st of projects defined in the manifest.xml


回答1:


Clone your manifest repo somewhere on your local machine (clone it as bare repository. use --bare option with 'git clone') and while initializing tree (repo init -u ....) specify your local path for the manifest repo.

if you have cloned your manifest repo at "/home/manifest.git" your repo init command would be

 repo init -u /home/manifest.git -m < manifest_name > -b < branch_name >


来源:https://stackoverflow.com/questions/37325132/how-can-i-avoid-fetching-of-repo-manifest-xml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!