Add check for git repository