check if current dir is git first
Merge redmine-review-bug-220-only-check-task-lastcheck-if-we-are-in-a-git-repository
reflect changes