All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 83b344eb authored by David Johnson's avatar David Johnson

Make gitmail work on a repository's first commit.

parent 956d8769
......@@ -1052,7 +1052,12 @@ sub get_commits($$$) {
# two revisions we were given.
#
if ($ct eq $CT_UPDATE) {
my $revstring = "$oldrev..$newrev";
my $revstring;
if ($oldrev eq $newrev) {
$revstring = $newrev;
} else {
$revstring = "$oldrev..$newrev";
}
debug("running '$GIT rev-list --reverse --date-order '$revstring'");
my @revs = `$GIT rev-list --reverse --date-order '$revstring'`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment