Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

do not try to lookup SHA1 from tags in planex-pin #610

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion planex/cmd/pin.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def populate_pinfile(pinfile, resources):
commitish = source.commitish
prefix = source.prefix
else:
repo = Repository(source.url)
repo = Repository(source.url, skipPopulateHash=True)
commitish = repo.commitish_tag_or_branch()
url = repo.repository_url()
prefix = None
Expand Down
4 changes: 2 additions & 2 deletions planex/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Repository(object):

# pylint: disable=R0902

def __init__(self, url):
def __init__(self, url, skipPopulateHash=False):
self.url = urlparse(url)
self.clone_url = None
self._query_url = None
Expand All @@ -32,7 +32,7 @@ def __init__(self, url):
self.sha1 = None
self.archive_at = None
self.repomgr = self.repomanager_from_netloc()
if self.repomgr in self.parsers:
if self.repomgr in self.parsers and not skipPopulateHash:
self.parsers[self.repomgr](self)
self._populate_sha1()

Expand Down