Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
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 bin/repoxplorer-indexer
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def process(conf):
if ref.get('index-tags') is True:
r.get_tags()
if not [head for head in r.heads if
head[1].endswith(ref['branch'])]:
head[1].startswith("refs/heads/%s" % ref['branch'])]:
logger.warning(
"Repository %s does not have the "
"requested branch %s" % (r.base_id, ref['branch']))
Expand Down
4 changes: 2 additions & 2 deletions repoxplorer/indexer/git/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def git_fetch_branch(self):
self.branch))
run(["git", "-c",
"credential.helper=%s" % self.credentials_helper_path,
"fetch", "-nk", "origin", "+%s:%s" % (self.branch, self.branch)],
"fetch", "-nk", "--force", "origin", "refs/heads/%s*:refs/heads/%s*" % (self.branch, self.branch)],
self.local)

def get_refs(self):
Expand Down Expand Up @@ -543,7 +543,7 @@ def run_workers(self, shas, workers):

def is_branch_fully_indexed(self):
branch = [head for head in self.heads if
head[1].endswith(self.branch)][0]
head[1].startswith("refs/heads/%s" % self.branch)][0]
branch_tip_sha = branch[0]
_, _, cmts_list = self.c.get_commits(repos=[self.ref_id], limit=1)
if not cmts_list:
Expand Down