From b3fdeeca66532c9a3ee4e3328329be75bd4b3530 Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Fri, 3 Jan 2014 20:57:13 -0500 Subject: [PATCH] Disable revision must be numeric requirement, since Git uses SHA1 and so may have alpha characters --- src/report/xml.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/report/xml.cpp b/src/report/xml.cpp index e60dcf4..282844c 100644 --- a/src/report/xml.cpp +++ b/src/report/xml.cpp @@ -198,11 +198,12 @@ void validate_run(const test_structure_t::run_t& run) { if(run.run_type != "incremental" && run.run_type != "full") { BOOST_THROW_EXCEPTION(xml_error("Expected run-type to be \"incremental\" or \"full\"")); } - BOOST_FOREACH(char ch, run.revision) { - if(!('0' <= ch && ch <= '9')) { - BOOST_THROW_EXCEPTION(xml_error("Expected revision to be a numeric constant")); - } - } +// For Git, revision is a SHA, and thus may contain alpha characters +// BOOST_FOREACH(char ch, run.revision) { +// if(!('0' <= ch && ch <= '9')) { +// BOOST_THROW_EXCEPTION(xml_error("Expected revision to be a numeric constant")); +// } +// } } }