[jhbuild] [buildbot] only display 8 characters of git commit hash



commit 9e3c5c720581a9dd01f80cd8a81e668185c93f0e
Author: Frederic Peters <fpeters 0d be>
Date:   Tue May 5 20:30:50 2009 +0200

    [buildbot] only display 8 characters of git commit hash
---
 jhbuild/buildbot/status/web/changes.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/jhbuild/buildbot/status/web/changes.py b/jhbuild/buildbot/status/web/changes.py
index 46761f7..48f1938 100644
--- a/jhbuild/buildbot/status/web/changes.py
+++ b/jhbuild/buildbot/status/web/changes.py
@@ -74,7 +74,7 @@ class ChangeResource(HtmlResource):
                 link = 'http://git.gnome.org/cgit/%s/commit/?id=%s' % (
                         self.change.project, self.change.revision)
                 data += '<p>View in GNOME cgit: <a href="%s">%s commit %s</a></dd>\n' % (
-                        link, self.change.project, self.change.revision)
+                        link, self.change.project, self.change.revision[:8])
             else:
                 link = 'http://svn.gnome.org/viewvc/%s?view=revision&revision=%s' % (
                         self.change.project, self.change.revision)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]