Skip to content

Conversation

@emilylange
Copy link
Member

@emilylange emilylange commented Nov 14, 2025

When I wrote #99 (30efa0a), I had the assumption that the GIT_DIR in /home/hydra-mirror/nixpkgs-channels is always up-to-date, but it isn't.

The actual local GIT_DIR only gets updated far further down (line 346).

This commit fixes the issue of git not yet knowing the $rev by fetching only that $rev early, instead of moving the much more expensive git remote update that would update all branches of nixpkgs, all the time.

When I wrote 30efa0a, I had the
assumption that the GIT_DIR in /home/hydra-mirror/nixpkgs-channels is
always up-to-date, but it isn't.

The actual local GIT_DIR only gets updated far further down (line 346).

This commit fixes the issue of git not yet knowing the $rev by fetching
only that $rev early, instead of moving the much more expensive git
remote update that would update all branches of nixpkgs, all the time.
@mweinelt mweinelt added this pull request to the merge queue Nov 14, 2025
Merged via the queue into NixOS:master with commit 430ccbc Nov 14, 2025
1 check passed
@emilylange emilylange deleted the fix-git-bad-object branch November 14, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants