Uploaded image for project: 'Maven SCM Publish Plugin'
  1. Maven SCM Publish Plugin
  2. MSCMPUB-12

scmBranch ignored when tryUpdate is specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.1
    • None

    Description

      When tryUpdate is set to true and scmBranch is set to gh-pages, the following error occurs:

      [INFO] Updating the pub tree from scm:git:git@github.com:freehep/freehep-vectorgraphics.git into /Users/duns/freehep/freehep-vectorgraphics/target/scmpublish
      [INFO] Executing: /bin/sh -c cd /Users/duns/freehep/freehep-vectorgraphics/target/scmpublish && git log -n1 --date-order master
      [INFO] Working directory: /Users/duns/freehep/freehep-vectorgraphics/target/scmpublish
      [ERROR] Failed to check out from SCM: The git-log command failed. fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
      Use '--' to separate paths from revisions, like this:
      'git <command> [<revision>...] -- [<file>...]'

      it seems scmBranch should have been used in the git log command.

      Attachments

        Activity

          People

            hboutemy Herve Boutemy
            duns Mark Donszelmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: