OpenLightingProject / ola

The Open Lighting Architecture - The Travel Adaptor for the Lighting Industry
https://www.openlighting.org/ola/
Other
646 stars 205 forks source link

git fsck failed on master #1660

Open mikacousin opened 4 years ago

mikacousin commented 4 years ago

Hello,

I want to package ola with olc on flathub but the build failed with git fsck :

error in tag 60784ccfa800b04ed2e754e33914a1b667e641c5: missingSpaceBeforeDate: invalid author/committer line - missing space before date

With a git cat-file tag 60784ccfa800b04ed2e754e33914a1b667e641c5, I've got:

object 42ce6c24c91e6773bfa564bea14f7c769e44f04 type commit tag start tagger simon <simon>

Can someone fix this ?

mikacousin commented 4 years ago

Finally I package ola 0.10.7 archive in my flatpak so this issue is no longer a blocking issue for me.

kripton commented 3 years ago

Interesting, never heard of of git fsck before ... That is basically one of the very first commits and that tag points to a commit that where the tree didn't advance further. I assume this tag + commit could be deleted without causing any harm. OLA-fistCommits

mikacousin commented 3 years ago

Yes, I was surprised when I discovered a git fsck error too ... I just found this script : https://github.com/collectd/collectd/issues/2115#issuecomment-301118735 Seems to resolve this error (quickly tested on a local copy).

mikacousin commented 2 years ago

Hi, To embed a recent version of ola with olc on flathub (problems with recent versions of python) would it be possible to delete the commit that is causing the problem?

pdmccormick commented 1 year ago

The repository for the Python requests library once had a similar issue (see this issue and also this documentation fix).

Here is a workaround: when cloning the repository, add the flag -c fetch.fsck.missingSpaceBeforeDate=ignore, as in:

git clone -c fetch.fsck.missingSpaceBeforeDate=ignore https://github.com/OpenLightingProject/ola.git

# Or:
git clone -c fetch.fsck.missingSpaceBeforeDate=ignore git@github.com:OpenLightingProject/ola.git

You can make this the default behaviour by setting your global config with:

git config --global fetch.fsck.missingSpaceBeforeDate ignore
pdmccormick commented 1 year ago

I've opened a PR to add these workaround directions to the README. This is my first time contributing to this project, so I'm not sure how exactly to go about seeking review, but hopefully someone will notice this! @kripton might that be you? Thanks!

kripton commented 1 year ago

Thank you @pdmccormick for your PR. While I don't oppose it, I don't think re-writing the complete history is necessary and I'd rather fix the root cause.

Since the commit in question (the one tagged with "start") doesn't have any descendants, I would simply delete the tag (or set it on the "Initial revision" commit instead) and that bad commit should then be gone from the history.

@peternewman or @nomis52 : Any objections about me force-pushing that tag (assuming I do have the permission)?

kripton commented 1 year ago

ping @peternewman

kripton commented 1 year ago

Polite ping @peternewman @nomis52 : Can I please drop or force-push the tag start to some other commit?