blob: a5dcc5d983f7dab8674bf3bae08e58eb9f479fef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Author: Daniel Baumann <mail@daniel-baumann.ch>
Description:
Showing commit IDs shortened by default to 7 characters (in line with default
git --abbrev-commit) rather than the unusual 12 also for gitweb.
diff -Naurp irker.orig/irkerhook.py irker/irkerhook.py
--- irker.orig/irkerhook.py
+++ irker/irkerhook.py
@@ -263,6 +263,7 @@ class GitExtractor(GenericExtractor):
commit.rev = do("git describe %s 2>/dev/null" % shellquote(commit.commit))
if not commit.rev:
commit.rev = commit.commit[:7]
+ commit.commit = commit.commit[:7]
# Extract the meta-information for the commit
commit.files = do("git diff-tree -r --name-only " + shellquote(commit.commit))
commit.files = " ".join(commit.files.strip().split("\n")[1:])
|