fix: oops fix branch name

TIL branches can't start with a dot or end in .lock
This commit is contained in:
əlemi 2024-02-15 04:21:22 +01:00
parent 6f6e9e24b4
commit 950c0aff74
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ most of my CIs are super simple: `cargo doc; cp * /srv/http/docs/`, configuring
just set it as `post-update` hook in your repository and, each time such repository gets updated, tci will:
* make sure repo is allowed to run CI: checks said repo git config for `tci.allow == true`
* make sure the branch being updated is `.tci` (customizable in server settings)
* make sure the branch being updated is `tci` (customizable in server settings)
* create a temp dir (under `/tmp`) with unique name
* clone your repository in that dir
* change current working directory to be inside your freshly cloned repo

View file

@ -36,7 +36,7 @@ impl Tci {
}
match self.cfg.branch.as_deref() {
None => self.repo.updates.contains_branch(".tci"),
None => self.repo.updates.contains_branch("tci"),
Some("") => true,
Some(b) => self.repo.updates.contains_branch(b),
}