So, I manage to resolve this issue. The problem was with access permission. Submodule HEAD was referring to nonexistent branch. And because of my access permission I was not able to checkout to a commit. After getting permissions, Everything went well. Answer might be helpful for others having same trouble.