For each customer repository change the file ChangeLog in branch master

as last step. The git commit for this file will be used as output, so this file
has always be the last to be checked in.
This commit is contained in:
Gerhard Hoffmann 2023-08-30 11:36:28 +02:00
parent a45e552d90
commit 5427844977

View File

@ -120,7 +120,10 @@ QStringList GitClient::gitShowReason() {
// %h: commit (short form)
// %s: commit message
// %cI: commit date, strict ISO 8601 format
Command c("git show -s --format=\"c=%h m=%s d=%cI\"");
// Note: use master branch. By convention, there is a ChangeLog file
// in the root of the repository, which has to be always the last file
// to be checked in when the customer repository somehow changed.
Command c("git show origin/master -s --format=\"c=%h m=%s d=%cI\"");
if (c.execute(m_customerRepository)) {
QString const s = c.getCommandResult().trimmed();
int const c = s.indexOf("c=");