code: def collect_reponames():
  	reponames = []
  	try:
  		with open(os.devnull) as devnull:
  			remote_data = subprocess.check_output(["git","remote","-v","show"],stderr=devnull)
  		branches = {}
  		for line in remote_data.decode('utf-8').split("\n"):
  			if line.strip() == "":
  				continue
  			remote_match = re_mote.match(line)
  			if not remote_match is None:
  				branches[remote_match.group(1)] = remote_match.group(5)
  		if len(branches) > 0:
  			if "origin" in branches:
  				reponames.append(branches["origin"])
  			else:
  				reponames.append(branches.values()[0])
  	except OSError:
  		pass
  	except subprocess.CalledProcessError:
  		pass
  	for fname in glob.iglob("*.html"):
  		fid = open(fname,"r","utf8")
  		fid.readline()
  		line = fid.readline()
  		match = re.match(repo_marker_re,line)
  		if not match is None:
  			reponames.append(match.group(1))
  		reponames = list(set(reponames))
  	return reponames