yorikvanhavre / WebTools

A series of tools to communicate with web services from within FreeCAD
http://www.freecadweb.org
17 stars 13 forks source link

Git: Clicking on "Log" creates traceback for empty/newly created repository #13

Closed hkienle closed 3 years ago

hkienle commented 3 years ago

This is mostly a "cosmetic" issue.

17:32:04  Traceback (most recent call last):
17:32:04    File "/home/kienle/.FreeCAD/Mod/WebTools/Git.py", line 111, in getLog
17:32:04      textform.browserText.setPlainText(self.repo.git.log())
17:32:04    File "/home/kienle/.local/lib/python3.8/site-packages/git/cmd.py", line 542, in <lambda>
17:32:04      return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
17:32:04    File "/home/kienle/.local/lib/python3.8/site-packages/git/cmd.py", line 1005, in _call_process
17:32:04      return self.execute(call, **exec_kwargs)
17:32:04    File "/home/kienle/.local/lib/python3.8/site-packages/git/cmd.py", line 822, in execute
17:32:04      raise GitCommandError(command, status, stderr_value, stdout_value)
17:32:04  git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git log
  stderr: 'fatal: your current branch 'master' does not have any commits yet'