Skip to content

Commit

Permalink
Fix local variable 'base_url' referenced before assignment (#4914)
Browse files Browse the repository at this point in the history
Fixes #4908
  • Loading branch information
Giftlin authored and pradyunsg committed Dec 17, 2017
1 parent b0a762a commit 7bb73f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/4908.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replaced typo mistake in subversion support.
4 changes: 2 additions & 2 deletions src/pip/_internal/vcs/subversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def get_revision(self, location):
dirurl, localrev = self._get_svn_url_rev(base)

if base == location:
base_url = dirurl + '/' # save the root url
elif not dirurl or not dirurl.startswith(base_url):
base = dirurl + '/' # save the root url
elif not dirurl or not dirurl.startswith(base):
dirs[:] = []
continue # not part of the same svn tree, skip it
revision = max(revision, localrev)
Expand Down

0 comments on commit 7bb73f6

Please sign in to comment.