don't dereference at the end of the workdir iterator
Merge pull request #1372 from ethomson/checkout_workdir_end

don't dereference at the end of the workdir iterator