Ignoring origin/HEAD if it shows up
This commit is contained in:
1
app.ts
1
app.ts
@@ -62,6 +62,7 @@ const fetchBranches = async (): Promise<string[]> => {
|
||||
.split("\n")
|
||||
.map((branch) => branch.trim())
|
||||
.filter((branch) => branch !== ""
|
||||
&& !branch.includes("origin/HEAD")
|
||||
&& !IGNORED_BRANCHES
|
||||
.some(ignored => new RegExp(`^${ ignored }$`)
|
||||
.test(branch.replace("origin/", ""))));
|
||||
|
||||
Reference in New Issue
Block a user