fixing the untracked flag being always up

Merge of b5830cdf2849c75947142753808d10f670ff78fd appears to have created a bug where the untracked flag for the git repository is always up. This fix correct that behavior.