move reverse check to AFTER null checkgit diff