Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git fsck failed on master #1660

Open
mikacousin opened this issue Aug 22, 2020 · 9 comments
Open

git fsck failed on master #1660

mikacousin opened this issue Aug 22, 2020 · 9 comments

Comments

@mikacousin
Copy link
Contributor

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
Copy link
Contributor Author

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

@kripton
Copy link
Member

kripton commented Feb 12, 2021

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
Copy link
Contributor Author

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

@mikacousin
Copy link
Contributor Author

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
Copy link

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
Copy link

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
Copy link
Member

kripton commented Apr 28, 2023

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
Copy link
Member

kripton commented May 3, 2023

ping @peternewman

@kripton
Copy link
Member

kripton commented Jun 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants