hamishcoleman / thinkpad-ec

Infrastructure for examining and patching Thinkpad embedded controller firmware
GNU General Public License v2.0
1.04k stars 114 forks source link

"fatal: unsafe repository" building X230T patch, what to do? #215

Closed Heidegaff closed 2 years ago

Heidegaff commented 2 years ago

I don't know how to use Linux further than sudo apt-get, I've been following the README file up until the sudo make patched, then it goes

Downloading x230t BIOS 2.73 (GCETB3WW) EC 1.14 (GCHT25WW)
2022-04-17 13:26:50 URL:https://download.lenovo.com/pccbbs/mobiles/gcuj32us.iso [33927168/33927168] -> "gcuj32us.iso.orig" [1]
scripts/checksum --mv_on_fail gcuj32us.iso.orig gcuj32us.iso
./scripts/ISO_copyFL2 from_iso gcuj32us.iso.orig x230t.GCHT25WW.s01DA000.FL2.orig 01DA000.FL2
git submodule update --init --remote
fatal: unsafe repository ('/home/kubuntu/thinkpad-ec' is owned by someone else)
To add an exception for this directory, call:

        git config --global --add safe.directory /home/kubuntu/thinkpad-ec
make: *** [Makefile:296: mec-tools/Makefile] Error 128

What do I do? Why is this happening?

Heidegaff commented 2 years ago

I have since figured out the issue. I was running sudo make patched.x230t.img, I should've not put sudo in. Not using it fixed the issue.