Try to figure out a list of repos to consider by default from the contents of the working directory.

def collect_reponames():
	"""
	Try to figure out a list of repos to consider by default from the contents of the working directory.
	"""
	reponames = []

	#try to figure out the repo from git repo in current directory
	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

	#scan html files for further repos to consider
	for fname in glob.iglob("*.html"):
		fid = open(fname,"r","utf8")
		#check the second line for the repo marker
		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