Get method to get commit id from submodule id