Commit 7ba24391 authored by Leigh B Stoller's avatar Leigh B Stoller

Exit gracefully if hash cannot be determined.

parent e0515283
......@@ -62,10 +62,15 @@ if (!$query_result) {
#
my $hash = `cd $SRCDIR; tools/git/current_branch_head`;
if ($?) {
die("*** $0:\n".
" Unable to get commit hash for source tree\n");
print STDERR
"*** $0:\n".
" Unable to get commit hash for source tree\n";
$hash = "";
}
else {
chomp($hash);
}
chomp($hash);
$hash = $dbh->quote($hash);
$query_result =
......
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