Error synchronization with cyanogenmod replication

I followed the instructions here to get the cynogenmod source on my system.

I was able to successfully complete the build. I did not make any local source changes. Now, when I try to get the last source using the repo sync command, I get the following errors:

 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 tried repo forall -c git reset --hard HEAD with no success. Any suggestions on how I can resolve these errors?

+6
source share
1 answer

Apparently, I ran into this problem because I had a repository on an NTFS partition. NTFS did not store file permissions correctly, but Git saw this as a change.
You can force Git to ignore file permissions by looking for changes using the following command:
repo forall -c git config core.filemode false

(Not sure if this has any side effect. If there is, please let me know!)

+6
source

Source: https://habr.com/ru/post/890162/


All Articles