Skip to content

Some shallow git fetching improvements #9410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 21, 2023
Merged

Conversation

edolstra
Copy link
Member

Motivation

There were part of my libgit2 branch but I forgot to push them.

Context

Priorities

Add 👍 to pull requests you find important.

This is more efficient, and necessary when using shallow=1 with a rev.
@github-actions github-actions bot added with-tests Issues related to testing. PRs with tests have some priority fetching Networking with the outside (non-Nix) world, input locking labels Nov 20, 2023
@edolstra edolstra merged commit c185e45 into NixOS:master Nov 21, 2023
@edolstra edolstra deleted the shallow branch November 21, 2023 11:58
DavHau added a commit to DavHau/nix that referenced this pull request Dec 29, 2023
Comment on lines -54 to -56
out=$(nix eval --impure --raw --expr "builtins.fetchGit { url = file://$repo; rev = \"$devrev\"; }" 2>&1) || status=$?
[[ $status == 1 ]]
[[ $out =~ 'Cannot find Git revision' ]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fact that these checks had to be removed indicates that the behavior changed in an incompatible manner.
Proposal to revert these changes: #9668

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fetching Networking with the outside (non-Nix) world, input locking with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants