Build済みmasterツリーでのrepo sync
いつも通りAndroidのソースツリーをrepo syncしてみたら、masterツリーでerrorが出た。
error: You have local changes to 'android/avd/hw-config-defs.h'; cannot switch branches.
error: external/qemu/: platform/external/qemu checkout d02b30ee5bfc925dd8e031c193c17672e500fd18
こんなファイルをいじった記憶はない。何が違うかgit diffしてみた。
$ git diff diff --git a/android/avd/hw-config-defs.h b/android/avd/hw-config-defs.h index bb523d5..c3f3f41 100644 --- a/android/avd/hw-config-defs.h +++ b/android/avd/hw-config-defs.h @@ -197,7 +197,7 @@ HWCFG_INT( "hw.lcd.density", 160, "Abstracted LCD density", - "Must be one of 120, 160 or 240. A value used to roughly describe the densit y + "Must be one of 120 / 160 / 240 / 213/ 320. A value used to roughly describe
意味がわからないよ。headで見てみた。
/* this file is automatically generated from 'hardware-properties.ini' * DO NOT EDIT IT. To re-generate it, use android/tools/gen-hw-config.py' */
ということらしい。gitのログをWeb*1で確認したら、該当ファイルが消されてた。ダメ元で
$ pushd external/qemu $ git reset --hard HEAD is now at 83c8f4e Merge "Fix -audioand -no-audio processing." $ popd $ repo sync Fetching projects: 100% (183/183), done.
でresetしてみたら、正常にsync出来た。ということでメモ。