问题
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.
- I have done a repo init, This step is completed.
- I did a small modification on the manifest.xml, removed some projects which are not required for a sync.
- 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