Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
7ba24391
Commit
7ba24391
authored
Jun 04, 2010
by
Leigh B Stoller
Browse files
Exit gracefully if hash cannot be determined.
parent
e0515283
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/setbuildinfo.in
View file @
7ba24391
...
...
@@ -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
=
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment