Nim*_*van 6 git android repository cyanogenmod
我按照这里的说明在我的系统上获取了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
Run Code Online (Sandbox Code Playgroud)
我试过repo forall -c git reset --hard HEAD没有成功.有关如何解决这些错误的任何建议?
显然我遇到了这个问题因为我在NTFS分区上有了存储库.NTFS没有正确地存储文件的权限,Git认为这是一个变化.
您可以强制Git在使用以下命令查找更改时忽略文件的权限:
repo forall -c git config core.filemode false
(不确定这是否有任何副作用.如果有,请告诉我!)
| 归档时间: |
|
| 查看次数: |
3010 次 |
| 最近记录: |