jnuyens / freedomev

FreedomEV repository. Unlocking the full potential of Linux on your EV!
GNU General Public License v3.0
185 stars 28 forks source link

git pull gives "fatal: refusing to merge unrelated histories" #12

Closed ErikDeBruijn closed 5 years ago

ErikDeBruijn commented 5 years ago

With a fresh download (from yesterday) of the USB rootfs I tried to git pull from the Model S within the chroot, but got the following:

remote: Enumerating objects: 368, done.
remote: Counting objects: 100% (368/368), done.
remote: Compressing objects: 100% (147/147), done.
remote: Total 606 (delta 220), reused 366 (delta 219), pack-reused 238
Receiving objects: 100% (606/606), 110.58 KiB | 501.00 KiB/s, done.
Resolving deltas: 100% (274/274), completed with 49 local objects.
From https://github.com/jnuyens/freedomev
 + 3e5aace...b6fed87 master      -> origin/master  (forced update)
 * [new branch]      new_toggles -> origin/new_toggles
fatal: refusing to merge unrelated histories

I'm not sure what's going on, but I'll hold off installing it for now.

ErikDeBruijn commented 5 years ago

Note, it actually did pull and update the files, so perhaps we could close this...

jnuyens commented 5 years ago

I did indeed rewrite history and that's annoying. I should generate a new image file, indeed to prevent that from happening.

jnuyens commented 5 years ago

I'll close after I put that online. And will bump the version to 1.1

appleguru commented 5 years ago

I did a git reset --hard origin/master to resolve this, but I'm unsure if that will cause other issues.

jnuyens commented 5 years ago

Should be ok since I rewrote history. Still need to bump the version and create a new image to make it easier, sry for the delay.

jnuyens commented 5 years ago

I bumped the version to 1.1, so if you enable auto-updating, it should do git pull and get the new simple feature to lock and unlock the service port.

maslakandrey commented 5 years ago

I can not understand why my computer does not see the cid of the machine, I think the problem is in the computer

пт, 11 окт. 2019 г. в 01:01, Jasper Nuyens notifications@github.com:

I bumped the version to 1.1, so if you enable auto-updating, it should do git pull and get the new simple feature to lock and unlock the service port.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jnuyens/freedomev/issues/12?email_source=notifications&email_token=ANEXUPBJM72BBMMKJ43RXPTQN6Q5NA5CNFSM4HLX54FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA6DV4A#issuecomment-540818160, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANEXUPHSMU6BBKVQWNO6PTDQN6Q5NANCNFSM4HLX54FA .

jnuyens commented 5 years ago

Dear,

If you try connecting from the service port below the cid, this is expected behavior: the iptables rules on cid block it and also the port is disabled on the gateway. If you have root already and FreedomEV is running, you should be able to lock and unlock the port through the interface. It does require socat on the image, I'll add package dependencies to version 1.3 to ensure it's there.

Grtz, Jasper

maslakandrey commented 5 years ago

That here the problem is that there is no access root :(

пт, 11 окт. 2019 г. в 10:51, Jasper Nuyens notifications@github.com:

Closed #12 https://github.com/jnuyens/freedomev/issues/12.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jnuyens/freedomev/issues/12?email_source=notifications&email_token=ANEXUPH4PDW2ZL4THC3RVDDQOAV6RA5CNFSM4HLX54FKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOUE7OJVI#event-2705253589, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANEXUPEVZFUAU3MLOGEFRP3QOAV6RANCNFSM4HLX54FA .