Do not alter ticket status if it is already closed
Temporary fix to handle git submodules

The git plugin is not currently aware of submodules (see
http://trac.edgewall.org/ticket/10603).