# # patch "git_export.cc" # from [47b7d67f113d4ce91464ff93cf04209389273508] # to [3770d83af6906a0cb91c3a798aaf475080abd921] # ======================================================================== --- git_export.cc 47b7d67f113d4ce91464ff93cf04209389273508 +++ git_export.cc 3770d83af6906a0cb91c3a798aaf475080abd921 @@ -562,6 +562,16 @@ string const &headname_, app_state & app) { + { + // early short-circuit to avoid failure after lots of work + // We need to write to the repository to save the gitcommit-id certs + // to faciliate incremental exports and export-imports. + rsa_keypair_id key; + N(guess_default_key(key,app), + F("no unique private key for cert construction")); + require_password(key, app); + } + require_path_is_directory(gitrepo, F("repo %s does not exist") % gitrepo, F("repo %s is not a directory") % gitrepo);