avoid dup check of guardSafeToUseRepo

Speeds up init slightly, and reduces the number of syscalls by the
dynamic linker.

Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
Joey Hess 2022-08-29 13:52:58 -04:00
parent f184dca7de
commit d4fd966396
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 20 additions and 7 deletions

View file

@ -35,6 +35,6 @@ perform s = do
then return $ toUUID s
else Remote.nameToUUID s
storeUUID u
initialize' False Nothing
checkInitializeAllowed $ initialize' False Nothing
Annex.SpecialRemote.autoEnable
next $ return True