Bug 1036405

Summary: [abrt] git-cola-1.9.1-1.fc20: gitcmds.py:94:current_branch:UnboundLocalError: local variable 'key' referenced before assignment
Product: [Fedora] Fedora Reporter: Guillaume Poirier-Morency <guillaumepoiriermorency>
Component: git-colaAssignee: Kevin Kofler <kevin>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: davvid, i, kevin
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/4870a11508a3b012e412d6d3682766feca82fbc0
Whiteboard: abrt_hash:5173618fee645ad597d92271eedd44acc26ea358
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-29 13:18:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Guillaume Poirier-Morency 2013-12-01 22:00:24 UTC
Version-Release number of selected component:
git-cola-1.9.1-1.fc20

Additional info:
reporter:       libreport-2.1.9
cmdline:        /usr/bin/python /usr/bin/git-cola
executable:     /usr/bin/git-cola
kernel:         3.11.9-300.fc20.i686
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
gitcmds.py:94:current_branch:UnboundLocalError: local variable 'key' referenced before assignment

Traceback (most recent call last):
  File "/usr/share/git-cola/lib/cola/app.py", line 282, in run
    model.update_status(update_index=True)
  File "/usr/share/git-cola/lib/cola/main/model.py", line 171, in update_status
    self._update_files(update_index=update_index)
  File "/usr/share/git-cola/lib/cola/main/model.py", line 182, in _update_files
    display_untracked=display_untracked)
  File "/usr/share/git-cola/lib/cola/gitcmds.py", line 448, in worktree_state_dict
    upstream_changed = diff_upstream(head)
  File "/usr/share/git-cola/lib/cola/gitcmds.py", line 514, in diff_upstream
    tracked = tracked_branch()
  File "/usr/share/git-cola/lib/cola/gitcmds.py", line 169, in tracked_branch
    branch = current_branch()
  File "/usr/share/git-cola/lib/cola/gitcmds.py", line 94, in current_branch
    _current_branch.key = key
UnboundLocalError: local variable 'key' referenced before assignment

Local variables in innermost frame:
status: 0
head: u'../../.git/modules/Modules/ORM\n/HEAD'
err: u''
value: u'develop'
refs_prefix: 'refs/heads/'
data: u'refs/heads/develop'

Comment 1 Guillaume Poirier-Morency 2013-12-01 22:00:33 UTC
Created attachment 831297 [details]
File: backtrace

Comment 2 Guillaume Poirier-Morency 2013-12-01 22:00:37 UTC
Created attachment 831298 [details]
File: environ

Comment 3 Fedora End Of Life 2015-05-29 09:53:35 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 David Aguilar 2015-05-29 10:25:42 UTC
This was fixed way back in v1.9.2, though you probably want the latest version since that was back in 2013.

Comment 5 Fedora End Of Life 2015-06-29 13:18:20 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.