Skip to content

ylibvcs.git: Fix unbound local variable 'tag_sha' error#11

Merged
tony merged 1 commit into
vcs-python:masterfrom
jcfr:fix-vcslib-git-unbound-var
Jun 22, 2016
Merged

ylibvcs.git: Fix unbound local variable 'tag_sha' error#11
tony merged 1 commit into
vcs-python:masterfrom
jcfr:fix-vcslib-git-unbound-var

Conversation

@jcfr

@jcfr jcfr commented Jun 22, 2016

Copy link
Copy Markdown
Collaborator

This commit fixes error like this one:

Traceback (most recent call last):
  File "./extensions-index-checkout.py", line 150, in <module>
    duration, result = timecall(repo.update_repo)()
  File "./extensions-index-checkout.py", line 53, in wrapper
    result = method(*args, **kwargs)
  File "/home/jcfr/Projects/sandbox/libvcs/libvcs/git.py", line 198, in update_repo
    self.debug("tag_sha: %s" % tag_sha)

UnboundLocalError: local variable 'tag_sha' referenced before assignment

This commit fixes error like this one:

```
Traceback (most recent call last):
  File "./extensions-index-checkout.py", line 150, in <module>
    duration, result = timecall(repo.update_repo)()
  File "./extensions-index-checkout.py", line 53, in wrapper
    result = method(*args, **kwargs)
  File "/home/jcfr/Projects/sandbox/libvcs/libvcs/git.py", line 198, in update_repo
    self.debug("tag_sha: %s" % tag_sha)

UnboundLocalError: local variable 'tag_sha' referenced before assignment
```
@codecov-io

codecov-io commented Jun 22, 2016

Copy link
Copy Markdown

Current coverage is 65.15%

Merging #11 into master will decrease coverage by 0.13%

@@             master        #11   diff @@
==========================================
  Files             7          7          
  Lines           484        485     +1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits            316        316          
- Misses          168        169     +1   
  Partials          0          0          

Powered by Codecov. Last updated by 7f8c6a8...9f9c24f

@tony

tony commented Jun 22, 2016

Copy link
Copy Markdown
Member

We need test coverage there bad

@tony tony merged commit be16f32 into vcs-python:master Jun 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants