Issues

Issue #198 resolved

smt run fails when git username not set.

Andrew Davison
repo owner created an issue

If the git username is not set, smt run fails with an uninformative error message.

File "/usr/local/depot/Python-2.7.3/lib/python2.7/site-packages/Sumatra-0.5.2-py2.7.egg/sumatra/records.py", line 109, in register
  self.user = get_user(working_copy)
File "/usr/local/depot/Python-2.7.3/lib/python2.7/site-packages/Sumatra-0.5.2-py2.7.egg/sumatra/users.py", line 21, in get_user
  return working_copy.get_username()
File "/usr/local/depot/Python-2.7.3/lib/python2.7/site-packages/Sumatra-0.5.2-py2.7.egg/sumatra/versioncontrol/_git.py", line 123, in get_username
  return "%s <%s>" % (config.get('user', 'name'),
File "/usr/local/depot/Python-2.7.3/lib/python2.7/site-packages/git/config.py", line 53, in assure_data_present
  return func(self, *args, **kwargs)
File "/usr/local/depot/Python-2.7.3/lib/python2.7/ConfigParser.py", line 330, in get
  raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'user'

(reported by Ivan Lupelli)

Comments (1)

  1. Log in to comment