diff --git a/git/git_client.cpp b/git/git_client.cpp index f3c4ae1..2dcacb3 100644 --- a/git/git_client.cpp +++ b/git/git_client.cpp @@ -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=");