Hi Aly,

So it looks like you cloned the git-trac-command repository under your sage
directory and tried to add it (probably accidentally) in this commit:
http://git.sagemath.org/sage.git/commit/?h=u/aly.deines/ticket/13568&id=87d42644c5909a3c3d02881cbe15f8581a39097a
.

Git won't add other git repositories when you tell it to, instead it just
adds a reference to another project. The trac plugin code assumes that you
never do this, that all references are to files/directories within the
project, so it should be easy enough to fix in the trac plugin code,
although you should make sure to do the following with that branch (from
the root directory):

$ git rm git-trac-command
$ echo "git-trac-command" >> .git/info/exclude

The first command will remove it from whatever you are currently working
on, and the second command will make it so git ignores that directory in
the future.

I should get out a fix for the trac module sometime this afternoon, but in
the meantime doing the above and pushing should make the ticket viewable
again.



On Fri, Aug 29, 2014 at 8:18 AM, Volker Braun <[email protected]> wrote:

> Andrew, I think this is your code.. do you understand what is going on?
>
>
> File
> "/usr/local/lib/python2.7/dist-packages/Trac-1.1.2dev-py2.7.egg/trac/web/main.py",
> line 497, in _dispatch_request
>   dispatcher.dispatch(req)
> File
> "/usr/local/lib/python2.7/dist-packages/Trac-1.1.2dev-py2.7.egg/trac/web/main.py",
> line 233, in dispatch
>   content_type)
> File
> "/usr/local/lib/python2.7/dist-packages/Trac-1.1.2dev-py2.7.egg/trac/web/chrome.py",
> line 995, in render_template
>   stream |= self._filter_stream(req, method, filename, stream, data)
> File "/usr/local/lib/python2.7/dist-packages/genshi/core.py", line 133, in
> __or__
>   return Stream(_ensure(function(self)), serializer=self.serializer)
> File
> "/usr/local/lib/python2.7/dist-packages/Trac-1.1.2dev-py2.7.egg/trac/web/chrome.py",
> line 1175, in inner
>   data)
> File
> "/usr/local/lib/python2.7/dist-packages/sage_trac-0.1-py2.7.egg/sage_trac/ticket_branch.py",
> line 73, in filter_stream
>   ret = self.get_merge(branch)
> File
> "/usr/local/lib/python2.7/dist-packages/sage_trac-0.1-py2.7.egg/sage_trac/git_merger.py",
> line 20, in get_merge
>   ret = self._merge(commit)
> File
> "/usr/local/lib/python2.7/dist-packages/sage_trac-0.1-py2.7.egg/sage_trac/git_merger.py",
> line 110, in _merge
>   merge_tree = recursive_write(repo.get(merge_tree))
> File
> "/usr/local/lib/python2.7/dist-packages/sage_trac-0.1-py2.7.egg/sage_trac/git_merger.py",
> line 108, in recursive_write
>   self._git.write(pygit2.GIT_OBJ_BLOB, obj.read_raw())
>
>
>
> On Friday, August 29, 2014 1:28:54 PM UTC+1, [email protected] wrote:
>>
>> I tried to push a patch to sage trac this morning and got the following
>> error:
>>
>> Trac detected an internal error:
>> AttributeError: 'NoneType' object has no attribute 'read_raw'
>>
>> You can see this error when you look at the ticket:
>> http://trac.sagemath.org/ticket/13568
>>
>> What do I need to do to fix this?
>>
>


-- 
Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to