summaryrefslogtreecommitdiffstats
path: root/git2rss
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-03-28 11:14:20 +0200
committerRemi Collet <fedora@famillecollet.com>2017-03-28 11:14:20 +0200
commitd8d2b6c64a905c89f788372fbfdb0873ef29cb67 (patch)
treed5ea25ea41d862c9072cc6eddb2d6a4b879156e6 /git2rss
parenta3ac9b01c4a7ec4ee86e6b38ce2e12ea1dc25617 (diff)
order again
Diffstat (limited to 'git2rss')
-rwxr-xr-xgit2rss3
1 files changed, 2 insertions, 1 deletions
diff --git a/git2rss b/git2rss
index 98e7c2d..4283b10 100755
--- a/git2rss
+++ b/git2rss
@@ -45,7 +45,6 @@ if (substr($entry['repo'], -4) != '.git') {
}
$short = substr($entry['hash'], 0, 7);
printf("Welcome %s\n", $entry['commiter']);
-echo "RSS new entry: ${entry['author']} pushed to ${entry['repo']} (${entry['head']},$short): ${entry['comment']}\n";
// Load previous changes
if (file_exists(__DIR__ . '/git2rss.json')) {
@@ -56,6 +55,8 @@ if (file_exists(__DIR__ . '/git2rss.json')) {
$histo = array();
}
+echo "RSS new entry: ${entry['author']} pushed to ${entry['repo']} (${entry['head']},$short): ${entry['comment']}\n";
+
// 50 recent changes, and save
$histo = array_merge([$entry], $histo);
while (count($histo) > FEEDSIZE) {