Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-113793

init-repository fails to strip a trailing / from origin's remote path

    XMLWordPrintable

Details

    • Linux/X11
    • 6c40b6160 (dev), 9a31ac479 (6.5), f03e39cb5 (6.6)

    Description

      I recently did a git clone ~/bare/qt/qt5.git/ in which tab-completion on the command-line had helpfully included a trailing slash. I used init-repository --mirror ~/bare/qt/ (in which the trailing / is required and correct) to set up all the sub-modules, only to find that the origin remote of each sub-module referred to non-existent ~/bare/qt/qt5.git/qtbase.git and similar, with a spurious qt5.git/ path-component.
      The origin of the top level module was ~/bare/qt/qt5.git/, retaining the trailing / from the command-line, so I suspect init-repository failed to properly clean that up.
      Each sub-module's mirror remote had the correct path to the remote in the mirror, from which it had clearly been cloned.

      This this happens naturally when cloning from a local mirror, thanks to command-line completion, it is an annoyance for anyone using this script with a local mirror, which it is supposed to support.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            Eddy Edward Welbourne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes