Commit 29da217c authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Handle no commits at the peer in check-for-squash

parent 43377a0c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -79,6 +79,9 @@ def catalogue_commits():
	"""
	Yield all regular commits as Commit objects, containing any update (squash) commits
	"""
	if os.environ.get(PRE_COMMIT_FROM_REF, Z40) == Z40:
		return

	cmd = git_log_cmd()
	cmd.extend([
		'--reverse',