Fixed configuring of repository without push URL set

Fixes #533

Signed-off-by: Michal Čihař <michal@cihar.com>