remove walk to git root function