[英]error syncing with cyanogenmod repo
I have followed the instructions here to get the cynogenmod source on my system.我已按照此处的说明在我的系统上获取 cynogenmod 源。
i was able to do the build successfully.我能够成功地进行构建。 I didn't do any local source changes.
我没有做任何本地源更改。 Now when i try to get the latest source using
repo sync
command, I am getting the following errors现在,当我尝试使用
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
I have tried repo forall -c git reset --hard HEAD
without success.我试过
repo forall -c git reset --hard HEAD
没有成功。 Any suggestions on how i can resolve these errors?关于如何解决这些错误的任何建议?
Apparently I was facing this issue because I had the repository on an NTFS partition.显然我遇到了这个问题,因为我在 NTFS 分区上有存储库。 NTFS was not storing the permissions on the file properly and Git was seeing that as a change.
NTFS 没有正确存储文件的权限,Git 将其视为更改。
You can force Git to ignore the permissions on the file while looking for changes by using the following command:您可以使用以下命令强制 Git 在查找更改时忽略文件的权限:
repo forall -c git config core.filemode false
(Not sure if this has any side effect. If there is, please let me know!) (不确定这是否有任何副作用。如果有,请告诉我!)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.