[pod spec create] Handle repos without commits

Fixes #2803