BerryFarm / berrymuch

🍇 Power user Unix distribution for Blackberry 10
42 stars 9 forks source link

git clone results in fatal: bad config line 5 in file .git/config #18

Open vaskas opened 4 years ago

vaskas commented 4 years ago

Steps to reproduce

  1. Try to clone a repo a few times, e.g.:
    git clone https://git.suckless.org/ii
  2. See the operation fail most times with:
    fatal: bad config line 5 in file .git/config

Expected result

The repository should be cloned at all times.

Work around

Keep re-trying. Try not to smash your phone if it's still not working.

vaskas commented 4 years ago

@yamsergey the new version (2.24.1) doesn't fix this apparently

karawitan commented 4 years ago

obviously linked to the fact that QNX is an RTOS ... http://www.qnx.com/developers/docs/6.4.1/neutrino/getting_started/s1_inter.html

yamsergey commented 4 years ago

🤔 means we should adjust git sources to disable interrupt while it's checking out?

karawitan commented 4 years ago

Yep, sort of .. don't know the exact details of what we should do, but sounds like implementing the first patches git on a real time os :) Would behave like "trap" does at shell level when receiving a sigkill signal for example ...

karawitan commented 4 years ago

I had made some tries to fix this without success:

See: ports-wip/git/patches/progress-c-no-sa-restart.patch ports-wip/git/patches/fast-import-c-no-sa-restart.patch https://github.com/berryamin/berrymuch/pull/22/files#diff-3e9ed3f4fb01f5a49fd35c6530571d20

yamsergey commented 4 years ago

I also did some investigation quite long ago. https://github.com/mordak/playbook-dev-tools/issues/7#issuecomment-425018434 , not a lot but maybe a way to reproduce