6

ここの指示に従って、システムでcynogenmodソースを取得しました。

ビルドを正常に行うことができました。ローカルソースの変更は行いませんでした。コマンドを使用して最新のソースを取得しようとするとrepo sync、次のエラーが発生します

error: Your local changes to the following files would be overwritten by checkout:
    Android.mk
    extendedcommands.c
    flashutils/Android.mk
    flashutils/flashutils.c
    flashutils/flashutils.h
    mounts.c
    mounts.h
    nandroid.c
    roots.c
Please, commit your changes or stash them before you can switch branches.
Aborting
error: Your local changes to the following files would be overwritten by checkout:
    encore.mk
    init.encore.rc
Please, commit your changes or stash them before you can switch branches.
Aborting
<few more errors like this.........>
error: bootable/recovery/: CyanogenMod/android_bootable_recovery checkout 50822991460cbee65757e9de12b29e39238d6386 
error: device/bn/encore/: CyanogenMod/android_device_bn_encore checkout f6586ab41f0e3f5acfa16b43f9b17008e9bb0524 

私はrepo forall -c git reset --hard HEAD成功せずに試しました。これらのエラーを解決する方法についての提案はありますか?

4

1 に答える 1

6

どうやら私はNTFSパーティションにリポジトリを持っていたのでこの問題に直面していました。NTFSはファイルのアクセス許可を適切に保存しておらず、Gitはそれを変更と見なしていました。
次のコマンドを使用して、変更を探すときにGitにファイルの権限を無視させることができます。
repo forall -c git config core.filemode false

(これに副作用があるかどうかはわかりません。副作用がある場合はお知らせください!)

于 2011-06-10T19:56:42.547 に答える