Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
minor logging tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
hvr committed Mar 7, 2010
1 parent 5da44cf commit 86be229
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tracext/git/PyGIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,12 @@ def read_commit(self, commit_id):
if not commit_id:
raise GitError("read_commit called with empty commit_id")

commit_id = self.fullrev(commit_id)
commit_id, commit_id_orig = self.fullrev(commit_id), commit_id

db = self.get_commits()
if commit_id not in db:
self.logger.info("read_commit failed for '%s'" % commit_id)
self.logger.info("read_commit failed for '%s' ('%s')" %
(commit_id, commit_id_orig))
raise GitErrorSha

with self.__commit_msg_lock:
Expand Down

0 comments on commit 86be229

Please sign in to comment.