summaryrefslogtreecommitdiffstats
path: root/git2rss
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-03-27 15:25:23 +0200
committerRemi Collet <fedora@famillecollet.com>2017-03-27 15:25:23 +0200
commit1cb256c258e2924cc2a22976a7ed1928db393434 (patch)
tree6dcb35d2dee7f8069b00b05b24d85aea8c341ba7 /git2rss
parent1c0b44f28de6769b7dcd6cc87081a3f1f3a661ac (diff)
minor fix
Diffstat (limited to 'git2rss')
-rwxr-xr-xgit2rss1
1 files changed, 1 insertions, 0 deletions
diff --git a/git2rss b/git2rss
index e1d543d..d57c3cc 100755
--- a/git2rss
+++ b/git2rss
@@ -31,6 +31,7 @@ if (substr($entry['repo'], -4) != '.git') {
$entry['repo'] .= '.git';
}
// print_r($entry);
+$short = substr($entry['hash'], 0, 7);
echo "RSS ENTRY: ${entry['author']} pushed to ${entry['repo']} (${entry['head']},$short): ${entry['comment']}";