Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1814

vcs Module Fails on CI: Replace logs/HEAD with rev-list HEAD --count for Repo Check

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • some future version
    • API: JavaScript
    • None

    Description

      The vcs module in Qbs currently relies on the logs/HEAD file to check if a Git repository is empty. However, during CI builds, the logs/HEAD file does not exist, causing the check to fail. To solve this, I propose replacing the check with git rev-list HEAD --count, which works reliably in both local and CI environments.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            dismine Roman Telezhynskyi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes