git-cola/git-cola — Issue #112: Unable to create new branch
Author: OmegaPhil
Created: 2012-02-20 21:48:20+00:00
State: open

Initialise a repository then open it up with git-cola. Branch -> Create, specify a name then press the Create Branch button.

Here git-cola visually hangs displaying a small Updating dialog. Actual issue:

Traceback (most recent call last):
File "/usr/share/git-cola/lib/cola/widgets/createbranch.py", line 60, in run
if status == 0:
UnboundLocalError: local variable 'status' referenced before assignment

In this case track is False and '/' is not in revision.

Adding 'status = 0' to the procedure's assignments at the top works.