Commit c9b8c429 authored by Dave Moxey's avatar Dave Moxey

Fix for detached head

parent fa460cec
......@@ -417,8 +417,18 @@ namespace Nektar
string branch(NekConstants::kGitBranch);
boost::replace_all(branch, "refs/heads/", "");
cout << " (git changeset " << sha1.substr(0, 8) << " "
<< "head " << branch << ")";
cout << " (git changeset " << sha1.substr(0, 8) << ", ";
if (branch == "")
{
cout << "detached head";
}
else
{
cout << "head " << branch;
}
cout << ")";
}
cout << endl;
......
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