I know the project is dead, but in case anyone runs across it...
The git status code does not work with projects containing submodules. There's a state variable outputState that is set on the phrases "Changes to be committed", "Changed but not updated", and "Untracked files". This variable has NO default and is otherwise undefined. A git repo with submodules can return the value
# On branch ios5_compatibility-1.0
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: vendor/openfeint (new commits)
#
Which will fail because addModifiedFile expects outputState to be set.
Atlassian Bamboo is using this code, which is where we found the failure.
Hi,
I've created a JavaGit fork located at http://bit-man.github.io/SwissArmyJavaGit/ and this problem seems to be fixed in last version (unless it doesn't happen in my Linux box). It was fixed because of a reported NPE ( https://github.com/bit-man/SwissArmyJavaGit/issues/1 )
Please feel free to clone the repository or download it.
Hope this helps
Last edit: Victor A. Rodriguez 2013-10-20