$ git config --global init.templatedir "/tmp/non-existing"
$ rm -rf ~/.subuser && subuser list available
warning: templates not found /tmp/non-existing
Traceback (most recent call last):
File "/usr/local/bin/subuser", line 52, in <module>
command(sys.argv[2:])
File "/usr/local/lib/python3.5/dist-packages/subuserlib/builtInCommands/list.py", line 64, in runCommand
reposToList = user.registry.repositories.keys()
File "/usr/local/lib/python3.5/dist-packages/subuserlib/classes/user.py", line 70, in registry
self.__registry.ensureGitRepoInitialized()
File "/usr/local/lib/python3.5/dist-packages/subuserlib/classes/registry.py", line 62, in ensureGitRepoInitialized
self.gitRepository.run(["init"])
File "/usr/local/lib/python3.5/dist-packages/subuserlib/classes/gitRepository.py", line 60, in run
returncode,_ = self.__run(args)
File "/usr/local/lib/python3.5/dist-packages/subuserlib/classes/gitRepository.py", line 84, in __run
raise GitException(stderr)
subuserlib.classes.gitRepository.GitException: warning: templates not found /tmp/non-existing
Repro: