From: Dan Callaghan <dan@bl2.djc.id.au>
To: sup-commits@supmua.dev
Subject: [sup-website.git] branch master updated: fail stagit if I forgot to check out develop branch of sup
Date: Sun, 22 Nov 2026 16:12:06 +1100 [thread overview]
Message-ID: <179532432668.254014.14443243130382621872@bl2.djc.id.au> (raw)
Pushed a commit to branch master:
https://supmua.dev/git/sup-website/commit/8d06fa526ae2dae493e7d6393a3a391fa8e448b8.html
The following commit(s) were added to refs/heads/master by this push:
new 8d06fa5 fail stagit if I forgot to check out develop branch of sup
8d06fa5 is described below
commit 8d06fa526ae2dae493e7d6393a3a391fa8e448b8
Author: Dan Callaghan <djc@djc.id.au>
AuthorDate: Sun Nov 22 16:11:50 2026 +1100
fail stagit if I forgot to check out develop branch of sup
---
_plugins/stagit.rb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/_plugins/stagit.rb b/_plugins/stagit.rb
index ec4f680..f508d90 100644
--- a/_plugins/stagit.rb
+++ b/_plugins/stagit.rb
@@ -57,6 +57,10 @@ Jekyll::Hooks.register :site, :post_write do |site|
dest = "#{site.dest}/git/#{repo}"
Jekyll.logger.info "Stagit:", "Processing #{repo}"
+ if repo == "sup"
+ raise "develop branch not checked out" if `git -C /home/dan/src/#{repo} rev-parse HEAD` != `git -C /home/dan/src/#{repo} rev-parse develop`
+ end
+
FileUtils.mkdir_p dest
system "cd #{dest} && stagit -b master:develop -u https://supmua.dev/git/#{repo}/ /home/dan/src/#{repo}" or raise "stagit failed"
reply other threads:[~2026-11-22 5:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179532432668.254014.14443243130382621872@bl2.djc.id.au \
--to=dan@bl2.djc.id.au \
--cc=djc@djc.id.au \
--cc=sup-commits@supmua.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox