From ffa979ed3776e3f260d4515eabfc9a83de454c11 Mon Sep 17 00:00:00 2001 From: emilylange Date: Fri, 14 Nov 2025 17:20:43 +0100 Subject: [PATCH] mirror-nixos-branch: fix typo causing the script to always die run() returns the exit code, but a successful exit is 0 (falsy), causing the `or die` to always invoke. My bad, this slipped through my testing. Ref: b4fca4f036fdebbbaefb5e65060c19b53b54ebb3 --- mirror-nixos-branch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirror-nixos-branch.pl b/mirror-nixos-branch.pl index f0b4517..430ab91 100755 --- a/mirror-nixos-branch.pl +++ b/mirror-nixos-branch.pl @@ -108,7 +108,7 @@ sub fetch { my $rev = $evalInfo->{jobsetevalinputs}->{nixpkgs}->{revision} or die; # Get commit date of $rev as unixtime and formatted string -run("git fetch origin $rev >&2") or die; +run("git fetch origin $rev >&2"); my $revUnix = `git show --no-patch --format='%ct' $rev` or die; my $revDate = strftime("%F %T %Z", localtime($revUnix));