mirror of
https://git.alemi.dev/tci.git
synced 2024-12-25 04:34:52 +01:00
fix: oops fix branch name
TIL branches can't start with a dot or end in .lock
This commit is contained in:
parent
6f6e9e24b4
commit
950c0aff74
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue