From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by bl2.djc.id.au (Postfix, from userid 1000) id C36B72D178C; Sun, 22 Nov 2026 16:12:06 +1100 (AEDT) Date: Sun, 22 Nov 2026 16:12:06 +1100 To: sup-commits@supmua.dev Subject: [sup-website.git] branch master updated: fail stagit if I forgot to check out develop branch of sup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <179532432668.254014.14443243130382621872@bl2.djc.id.au> Reply-To: Dan Callaghan X-Git-Host: bl2.djc.id.au X-Git-Repo: sup-website.git X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 9693eabacc8f7040cf15ad0644f43384f3f0834a X-Git-Newrev: 8d06fa526ae2dae493e7d6393a3a391fa8e448b8 X-Git-Rev: 8d06fa526ae2dae493e7d6393a3a391fa8e448b8 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.7.dev Auto-Submitted: auto-generated From: Dan Callaghan List-Id: 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 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"