git checkout commit hash reference is not a tree