[Freeswitch-users] git push invalid format

Ken Rice krice at freeswitch.org
Tue Mar 10 05:21:11 MSK 2015


Git itself doesn¹t say this is an invalid commit (we use stash/git and its
perfectly fine with this)... There is a git-lint process that github uses
and it rejects this commit


On 3/9/15, 6:57 PM, "Ben Langfeld" <ben at langfeld.co.uk> wrote:

> I understand very well why rewriting history is undesirable and how git works.
> What I wonder is what process was used to convince git to create a commit
> which it would later say is invalid. As I said, I'm curious.
> 
> On 9 March 2015 at 20:12, Steven Ayre <steveayre at gmail.com> wrote:
>> Plus it's rather annoying to do so (rewrite history). The identifier of each
>> commit is a hash computed from the content of the commit plus the metadata
>> which includes the authors. Changing the author would change the identifier
>> of the commit. That then changes the identifier of every commit afterwards.
>> That then breaks every checkout / fork based off the tree as they no longer
>> know where they are forked from. And since identifiers have all been
>> rewritten we would no longer know what version you were running, or what
>> version bug reports were reported against.
>> 
>> (that's why git makes it easy to amend your latest uncommitted commit message
>> but rather difficult to edit any others)
>> 
>> 
>> 
>> 
>> On 9 March 2015 at 13:41, Michael Jerris <mike at jerris.com> wrote:
>>> We are not rewriting history to fix this so it doesn't really matter who is
>>> right or wrong.
>>> 
>>> Mike
>>> 
>>>> On Mar 9, 2015, at 9:13 AM, Ben Langfeld <ben at langfeld.co.uk> wrote:
>>>> 
>>>> I'm curious about this one... If git fsck complains about the issue, what
>>>> is the justification for saying that Github is broken? How were these
>>>> commits created with a format that git itself complains about?
>>>> 
>>>> On 9 March 2015 at 09:01,  <cmrienzo at gmail.com> wrote:
>>>>> I switched to bitbucket.org <http://bitbucket.org/>  just for the
>>>>> FreeSWITCH repo to work around this. 
>>>>> 
>>>>> 
>>>>> On Mar 8, 2015, at 20:34, Ken Rice <krice at freeswitch.org> wrote:
>>>>> 
>>>>>> This is a known issue with github and will not be fixed 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On 3/8/15, 3:39 PM, "Podrigal, Aron" <aronp at guaranteedplus.com
>>>>>> <http://aronp@guaranteedplus.com/> > wrote:
>>>>>> 
>>>>>>> Hi,
>>>>>>> 
>>>>>>> I'm trying to push the freeswitch git repo to my github, but I get the
>>>>>>> following error
>>>>>>> 
>>>>>>> 
>>>>>>> remote: error: object 487128950df6ee433c131b5feaafe81ee86629f4:invalid
>>>>>>> format - expected 'committer' line
>>>>>>> remote: fatal: Error in object
>>>>>>> channel_by_id: 0: bad id: channel free
>>>>>>> Received window adjust for non-open channel 0.
>>>>>>> error: pack-objects died of signal 13
>>>>>>> 
>>>>>>> This is caused by having multiple authors on a commit (which in general
>>>>>>> is not allowed by git) and github verifies the commits and rejects it.
>>>>>>> 
>>>>>>> here is the output of git fsck
>>>>>>> 
>>>>>>> Checking object directories: 100% (256/256), done.
>>>>>>> error in commit 487128950df6ee433c131b5feaafe81ee86629f4: invalid format
>>>>>>> - expected 'committer' line
>>>>>>> error in commit 8574988c3a378b4d5861ecaeb0e958657635703b: invalid format
>>>>>>> - expected 'committer' line
>>>>>>> Checking objects: 100% (254227/254227), done.
>>>>>>> 
>>> 
>>> 
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>> 
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>> 
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>> 
>> 
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>> 
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>> 
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
> 
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-- 
Ken
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
irc.freenode.net #freeswitch
Twitter: @FreeSWITCH


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150309/dab13a6a/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list