對here問題的迴應。 我的manifest.xml
複製到.repo
和類型:使用本地清單的回購不起作用
repo init -m ./.repo/manifest.xml
而且它不工作:
jack $ repo init -m ./.repo/manifest.xml
fatal: manifest url (-u) is required.
我做的manifest.xml提供。哪裏不對?
對here問題的迴應。 我的manifest.xml
複製到.repo
和類型:使用本地清單的回購不起作用
repo init -m ./.repo/manifest.xml
而且它不工作:
jack $ repo init -m ./.repo/manifest.xml
fatal: manifest url (-u) is required.
我做的manifest.xml提供。哪裏不對?
我從來沒有使用過這種方法。我在這種情況下所做的是在.repo
目錄中創建一個名爲local_manifest.xml
的文件,其中包含有關將偏離已經同步的分支的項目的信息。例如:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remove-project name="platform/bionic"/>
<project path="bionic"
name="platform/bionic"
revision="my-awesome-feature-branch"/>
</manifest>
添加此文件後,我再簡單地repo sync
。
以下是我在本地完成此項工作的過程。
我的manifest.xml移動至不同的地點一樣~/mymanifest/manifest.xml
我做了目錄做
cd ~/mymanifest
git init
git add manifest.xml
git commit -m "My local manifest"
然後,我只是不得不repo -u ~/mymanifest/
它裝載了當地清單喜歡工作的git啓用這應該!
這工作,但我不得不將清單重命名爲default.xml – funroll 2015-08-25 14:55:29
查看[init命令文檔](http://source.android.com/source/using-repo.html#init) - 您需要提供URL到存儲庫。 – 2013-04-10 12:53:25