Skip to content

Commit

Permalink
[backend] return an empty rev in getrev_meta when there was no commit…
Browse files Browse the repository at this point in the history
… yet, just like in getrev
  • Loading branch information
mlschroe committed Feb 15, 2013
1 parent 14df7ee commit a1e42a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/bs_srcserver
Original file line number Diff line number Diff line change
Expand Up @@ -2062,6 +2062,7 @@ sub getrev_meta {
my $rev;
if (!defined($revid) || $revid eq 'latest') {
$rev = BSFileDB::fdb_getlast($revfile, $srcrevlay);
$rev = { 'srcmd5' => $emptysrcmd5 } unless $rev;
} elsif ($revid =~ /^[0-9a-f]{32}$/) {
$rev = { 'srcmd5' => $revid };
} else {
Expand Down

0 comments on commit a1e42a8

Please sign in to comment.