Skip to content

cargo update --config net.git-fetch-with-cli=true fetches using git2 #13991

@epage

Description

@epage

Problem

As reported in renovatebot/renovate#29277

  • Private git repo dependency fetching worked on 1.77 but not 1.78
  • They used net.git-fetch-with-cli=true on the command-line

I git bisected it to #13479, specifically f525e1f

Steps

$ git clone https://github.com/crate-ci/cargo-release.git
$ cd cargo-release
$ rm -rf ~/.cargo/git  # avoiding the github fast path
$ cargo update --config net.git-fetch-with-cli=true

Notice that the fetch is done using libgit2 instead of git. To make this more obvious, I ran from master with a dbg! around the git_fetch_with_cli check at

if let Some(true) = gctx.net_config()?.git_fetch_with_cli {

Possible Solution(s)

No response

Notes

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-config-cliArea: --config CLI optionC-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.regression-from-stable-to-stableRegression in stable that worked in a previous stable release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions