* [sup-website.git] branch master updated: fail stagit if I forgot to check out develop branch of sup
@ 2026-11-22 5:12 Dan Callaghan
0 siblings, 0 replies; only message in thread
From: Dan Callaghan @ 2026-11-22 5:12 UTC (permalink / raw)
To: sup-commits
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"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-22 5:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22 5:12 [sup-website.git] branch master updated: fail stagit if I forgot to check out develop branch of sup Dan Callaghan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox