Closed
Description
Since git 2.48.1 i got issues when fetching long branches from a repository (usecase: The repository should be fetched by Jenkins, so path lengths get past 260 characters).
Steps to reproduce:
- Have a git repository with a branch that has a long name
- Create a directory with a very long name
- Open git in that directory
git init
git fetch --no-tags --force --progress --prune -- https://github.com/foo/bar.git +refs/heads/*:refs/remotes/origin/*
Expected result
Everything is fetched (When executing this with git 2.47.1 it works)
Actual Result
For the long branches i get these error messages:
error: couldn't set 'refs/remotes/origin/foo/loooooooooooooooong_branch_name'
! [new branch] foo/loooooooooooooooong_branch_name -> origin/foo/loooooooooooooooong_branch_name (unable to update local ref)