Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-598

String index out of bounds while trying to commit limited file set to Git

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5
    • None
    • Ubuntu 10
    • Patch

    Description

      I encountered String index out of bounds while trying to commit limited file set to Git.

      if statement was checking if file's absolute path was starting with working directory absoulute path, but stripping absoulute path from the value returned by getPath(). At least in Linux this getPath and getAbsolutePath did not return the same.

      I have actually submitted the fix to Github repo, but it appeared to be a wrong place Attachment has screenshot with diff from Github.

      Attachments

        1. GitCommandLineUtils.java.patch
          0.6 kB
        2. Screenshot.png
          176 kB

        Activity

          People

            struberg Mark Struberg
            aleksandr.zuikov Aleksandr Zhuikov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: