-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
invalid git history #3008
Comments
I'd assume there are many more large/popular repositories that contain at least broken timestamps. IMO it'd be impudent if a distro patches git in a way that would break cloning repos like this. Given requests' history with downstream patches, I guess others would agree.
Upstream should decide, yes. EDIT: From the larger Python repos, it seems that Werkzeug is also affected by this. |
If verification is off, there aren't even checks to make sure that the hashes are correct. It would make sense if there was a loose mode accepting some invalid history, like invalid timestamps. |
Well, one solution is to |
OK, here's my position on this.
|
Also of note is the fact that this commit has existed since 2011 and no one has noticed for 5 years. |
Also of note is that this is a duplicate issue: https://github.com/kennethreitz/requests/issues/2690 |
FYI, this is breaking YouCompleteMe install for those who turned full fsck on. |
@junkblocker I'm sorry about that but we're not going to rewrite history. |
@junkblocker perhaps you can do a shallow clone instead? |
I am not directly cloning YCM, I am doing it via NeoBundle (a vim plugin manager). I think I have shallow clone set up for that but it probably doesn't do shallow checkout of submodules (if there is a way to do that via git). Additionally, I wonder if there is a way to ignore fsck per repository via global .gitconfig. |
See http://duncansungwkim.blogspot.ca/2014/04/workaround-of-git-shalow-clone-with.html. There is a workaround but it may involve forking your plugin manager. (Ran into the same with vim-plug.) |
Because further conversation on this bug will not be productive and there are 844 people subscribed to notifications for this repository, I'm locking this conversation. If you have problems with other projects, please continue the discussion there. |
The Git history for this repository is invalid. You'll run into this if you enable verification of the history in your configuration (which should really be the default):
If you look at the commit with verification disabled, you can see the problem:
I don't have a suggestion on how to approach this. It's quite unfortunate. The history would probably have to be rewritten, and that would be awful. I do think it's worth noting though... verification by default may become the default on various distributions or even upstream.
The text was updated successfully, but these errors were encountered: