Bug 10883 - git not works with GIT_DIR and repository without .git

Summary: git not works with GIT_DIR and repository without .git