diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-05-04 09:55:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-04 09:55:15 +0200 |
| commit | 8a0594f8eb5c053b7ca3df2bd9f6215accb2fc3b (patch) | |
| tree | ef426b754244f1e10ddbb11e65c94b6f719e9a9c | |
| parent | Fullscreen resize fixes (#5117) (diff) | |
| download | sl0ppij-8a0594f8eb5c053b7ca3df2bd9f6215accb2fc3b.tar.gz sl0ppij-8a0594f8eb5c053b7ca3df2bd9f6215accb2fc3b.tar.xz sl0ppij-8a0594f8eb5c053b7ca3df2bd9f6215accb2fc3b.zip | |
fix: when publishing, publish current branch rather than hardcoded main (#5127)
* fix: when publishing, publish current branch rather than hardcoded main
* add pr
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | xtask/src/pipelines.rs | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 042cf5cc..61181d27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) * feat: support `CSI 2031` + dark/light mode theme switching (https://github.com/zellij-org/zellij/pull/5105, https://github.com/zellij-org/zellij/pull/5111 and https://github.com/zellij-org/zellij/pull/5113) * fix: incorrect interpretation of unicode characters in KKP STDIN (https://github.com/zellij-org/zellij/pull/5110) * fix: some issues regarding the interaction of fullscreen panes with resize/scrollback-editing (https://github.com/zellij-org/zellij/pull/5117) +* fix: allow releasing from non-main branches in our build system (https://github.com/zellij-org/zellij/pull/5127) ## [0.44.1] - 2026-04-07 * fix: don't display default ports as offline in `share` plugin (https://github.com/zellij-org/zellij/pull/4908) diff --git a/xtask/src/pipelines.rs b/xtask/src/pipelines.rs index 16129d43..1c4a477e 100644 --- a/xtask/src/pipelines.rs +++ b/xtask/src/pipelines.rs @@ -359,7 +359,10 @@ pub fn publish(sh: &Shell, flags: flags::Publish) -> anyhow::Result<()> { } else if flags.no_push { println!("Skipping push due to no-push"); } else { - cmd!(sh, "git push --atomic {remote} main v{version}") + let branch = cmd!(sh, "git rev-parse --abbrev-ref HEAD") + .read() + .context(err_context)?; + cmd!(sh, "git push --atomic {remote} {branch} v{version}") .run() .context(err_context)?; } |
