Code

git-notify: Fix the ordering of commits
[nagiosplug.git] / tools / git-notify
index 17093aab354a454f29d043abbfb83670544d6499..088a58046331c7cbb2ad949d6ee4e8c4c151e27c 100755 (executable)
@@ -145,7 +145,7 @@ sub git_rev_list(@)
     die "Cannot open pipe: $!" if not defined $pid;
     if (!$pid)
     {
-        exec "git", "rev-list", @revlist_options, @args or die "Cannot execute rev-list: $!";
+        exec "git", "rev-list", "--reverse", @revlist_options, @args or die "Cannot execute rev-list: $!";
     }
     while (<REVLIST>)
     {