String index out of bounds while trying to commit limited file set to Git
-------------------------------------------------------------------------
Key: SCM-598
URL: http://jira.codehaus.org/browse/SCM-598
Project: Maven SCM
Issue Type: Bug
Components: maven-scm-provider-git
Affects Versions: 1.4
Environment: Ubuntu 10
Reporter: Aleksandr Zhuikov
Attachments: Screenshot.png
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira