gitless icon indicating copy to clipboard operation
gitless copied to clipboard

Crash on empty repo

Open pepa65 opened this issue 7 years ago • 0 comments

When I do:

git clone [email protected]:pepa65/stillempty.git
cd stillempty
gl

There is a crash:

Traceback (most recent call last):
  File "gl.py", line 14, in <module>
  File "gitless/cli/gl.py", line 71, in main
  File "gitless/cli/file_cmd.py", line 23, in f
  File "gitless/core.py", line 210, in current_branch
_pygit2.GitError: Reference 'refs/heads/master' not found
Failed to execute script gl

I would expect to get the help text. (I thought at first my binary was suddenly corrupted..! But it was still the same.)

pepa65 avatar Dec 15 '17 13:12 pepa65