Emily Shaffer <emilyshaffer@xxxxxxxxxx> writes: > + switch (safe_create_leading_directories(report_path.buf)) { This helper is about creating paths in the working tree and Git repository, hence it has a call to adjust_shared_perm() which in turn calls get_shared_repo(), i.e. requiring a repository. I thought I read somewhere that this tool is meant to be usable outside a repository? If that is not the case, then the use of this helper is OK. If not, we may want to make sure that it will stay to be safe to use the helper (I think it happens to be OK right now, but if the reason why the user is trying to run the tool is because the user broke Git by writing garbage into .git/config, we may die("your configuration file is broken") before this helper returns). Thanks.