Fix #48: Allow creation of partial repository
Addition to #48.