Multiple git repository names are not check and repositories risk be merged (our case 12286)

XMLWordPrintable

      With multiple git repositories, the post-build step is not using them correctly and several situations have been seen where one repo is tried to be integrated into another and pushed.

      This mixes up repositories and is fatal for the plugin.

      Reproduce:

      • using git scm plugin (not multiscm)
      • configure it to two repositories
      • repo1, explicitly named origin in the git scm configuration
      • repo2, explicitly not named in the git scm configuration
      • branch specifier that triggers on both repos if they change
      • pretested integration configuration: master + repo1
      • both repo must be able to checkout into same folder, without filename clashes (this is not normal wanted behavior, but it doesn't matter for this test)
      • make a commit on a ready branch in repo2, with a new file that doesn't exist in either of the repo

      Result: **The file get integrated into origin (repo1) instead of of not at all.

            Assignee:
            Bue Petersen
            Reporter:
            Bue Petersen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: