Fixed the infinite loopgit status