Commit f004bf91 authored by Grant's avatar Grant
Browse files

fetcher: remove branch check as CI already has the correct branch

parent a7f41fc3
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -155,8 +155,8 @@ def process_post(self, post_body, make_pr):
			# Yes, I used AI assisted tooling. And they work pretty well. Thanks codeium.
			# get git branch name
			branch = subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"], text=True).strip()
			if branch != "main":
				raise BaseException("Not on main branch, refusing to continue: " + branch)
			# if branch != "main":
			# 	raise BaseException("Not on main branch, refusing to continue: " + branch)
			# check if any content in entries is dirty
			if EDITIONS[self.edition]["entry_folder"] in subprocess.check_output(["git", "status", "--porcelain"], text=True):
				raise BaseException("Some change in entries are uncommited, refusing to continue")