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

Exception when browsing git repository #35

Open
ghost opened this issue Apr 2, 2014 · 0 comments
Open

Exception when browsing git repository #35

ghost opened this issue Apr 2, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 2, 2014

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...

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

0 participants