trac-code-comments-plugin
trac-code-comments-plugin copied to clipboard
Exception when browsing git repository
With both 1.1.1 and the current master, I get the following exception on a git repository, while for svn it works fine:
2014-04-02 10:05:46,511 Trac[main] ERROR: Internal Server Error: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 497, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 214, in dispatch resp = chosen_handler.process_request(req) File "/var/lib/trac/plugins/TracCodeComments-1.1.1-py2.7.egg/code_comments/web.py", line 277, in process_request self.return_json(req, Comments(req, self.env).search(req.args)) File "/var/lib/trac/plugins/TracCodeComments-1.1.1-py2.7.egg/code_comments/comments.py", line 75, in search return self.select('SELECT * FROM code_comments ' + where + ' ORDER BY ' + order_by + ' ' + order + limit, values) File "/var/lib/trac/plugins/TracCodeComments-1.1.1-py2.7.egg/code_comments/comments.py", line 32, in select @self.env.with_transaction() File "/usr/lib/python2.7/dist-packages/trac/db/api.py", line 97, in transaction_wrapper fn(ldb) File "/var/lib/trac/plugins/TracCodeComments-1.1.1-py2.7.egg/code_comments/comments.py", line 35, in get_comments cursor.execute(*query) File "/usr/lib/python2.7/dist-packages/trac/db/util.py", line 65, in execute return self.cursor.execute(sql_escape_percent(sql), args) DataError: invalid input syntax for integer: "HEAD" LINE 1: ...ts WHERE path = '/' AND line = '0' AND revision = 'HEAD' ORD... ^ DataError: invalid input syntax for integer: "HEAD" LINE 1: ...ts WHERE path = '/' AND line = '0' AND revision = 'HEAD' ORD...