【问题标题】:error syncing with cyanogenmod repo与 cyanogenmod 存储库同步时出错
【发布时间】:2011-06-09 16:06:22
【问题描述】:

我已按照说明here 在我的系统上获取 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 没有成功。 关于如何解决这些错误的任何建议?

【问题讨论】:

  • 为什么不在氰基论坛上提问?

标签: android git repository cyanogenmod


【解决方案1】:

显然我遇到了这个问题,因为我的存储库位于 NTFS 分区上。 NTFS 未正确存储文件的权限,Git 将其视为更改。
您可以使用以下命令强制 Git 在查找更改时忽略文件的权限:
repo forall -c git config core.filemode false

(不确定这是否有任何副作用。如果有,请告诉我!)

【讨论】:

  • 谢谢,我在尝试通过 Virtualbox 中的共享文件夹进行编译时遇到了同样的问题。我已将文件夹移动到本地(虚拟)磁盘,但它不起作用。现在我可以正确同步了。
猜你喜欢
  • 2020-08-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-03-05
  • 1970-01-01
  • 2011-09-16
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多