`::refresh` function in git.coffee is safer. Allows working with submodules
`::refresh` function in git.coffee is safer. Allows working with submodules

Instances of submodules don't have a `::refreshStatus` function.
So call `::refreshStatus` and `::refreshIndex` only if they exist.

akonwi/git-plus,akonwi/git-plus