Detect whether repository was given as an object or string.
v0.3.1