Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-1849

Exception when creating a new PR from CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.0
    • None
    • cli
    • None

      $ git pr create
      Exception in thread "main" java.lang.StringIndexOutOfBoundsException: begin 7, end 6, length 6
      at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4601)
      at java.base/java.lang.String.substring(String.java:2704)
      at java.base/java.lang.String.substring(String.java:2677)
      at org.openjdk.skara.cli/org.openjdk.skara.cli.pr.GitPrCreate.main(GitPrCreate.java:256)
      at org.openjdk.skara.args/org.openjdk.skara.args.Command.main(Command.java:54)
      at org.openjdk.skara.args/org.openjdk.skara.args.MultiCommandParser.lambda$parse$2(MultiCommandParser.java:65)
      at org.openjdk.skara.cli/org.openjdk.skara.cli.GitPr.main(GitPr.java:111)
      at org.openjdk.skara.cli/org.openjdk.skara.cli.GitSkara.main(GitSkara.java:231)

      This is my branch:

      https://github.com/mcimadamore/jdk/tree/metadata_faster

      And here some relevant bits in my git conf file:

      [remote "origin"]
      url = https://github.com/mcimadamore/jdk.git
      fetch = +refs/heads/*:refs/remotes/origin/*


      [branch "metadata_faster"]
      remote = origin
      merge = refs/heads/metadata_faster


      Note, I have been able to create PRs w/o issue on this very local repository. This branch seems to rub skara the wrong way.

            zsong Zhao Song
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: