Skip to content

Commit 430ccbc

Browse files
authored
Merge pull request #101 from emilylange/fix-git-bad-object
mirror-nixos-branch: fix git `fatal: bad object` error
2 parents 40fd591 + b4fca4f commit 430ccbc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mirror-nixos-branch.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ sub fetch {
108108
my $rev = $evalInfo->{jobsetevalinputs}->{nixpkgs}->{revision} or die;
109109

110110
# Get commit date of $rev as unixtime and formatted string
111+
run("git fetch origin $rev >&2") or die;
111112
my $revUnix = `git show --no-patch --format='%ct' $rev` or die;
112113
my $revDate = strftime("%F %T %Z", localtime($revUnix));
113114

0 commit comments

Comments
 (0)