gitless icon indicating copy to clipboard operation
gitless copied to clipboard

Crash on gl commit

Open chrish42 opened this issue 8 years ago • 0 comments

I get the following backtrace when trying to to a gl commit on a repository. Not sure exactly what triggers the error, but gl status reports a mix of added, modified and deleted (because they now match a .gitignore entry) files. Doing the commit with git works.

I can't send the repo, but I've kept a copy where I can reproduce the bug and run tests asked.

Here's the debug info:

  0.8.4

  Traceback (most recent call last):
    File "/usr/local/Cellar/gitless/0.8.4/libexec/lib/python2.7/site-packages/gitless/cli/gl.py", line 73, in main
      return SUCCESS if args.func(args, repo) else ERRORS_FOUND
    File "/usr/local/Cellar/gitless/0.8.4/libexec/lib/python2.7/site-packages/gitless/cli/gl_commit.py", line 66, in main
      _auto_track(commit_files, curr_b)
    File "/usr/local/Cellar/gitless/0.8.4/libexec/lib/python2.7/site-packages/gitless/cli/gl_commit.py", line 102, in _auto_track
      f = curr_b.status_file(fp)
    File "/usr/local/Cellar/gitless/0.8.4/libexec/lib/python2.7/site-packages/gitless/core.py", line 765, in status_file
      return self._status_file(path)[0]
    File "/usr/local/Cellar/gitless/0.8.4/libexec/lib/python2.7/site-packages/gitless/core.py", line 780, in _status_file
      f_st = self.FileStatus(path, *self._st_map[git_st])
  KeyError: 16388

chrish42 avatar Nov 09 '16 22:11 chrish42