-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
A-gitArea: anything dealing with gitArea: anything dealing with gitC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Description
Ever since #4015 , Cargo avoids checking out the index as a working directory; however, cargo still creates the repository as a non-bare repository with a working directory that just doesn't have any files checked out.
Ideally, I'd love to store this as a bare repository instead, where git doesn't expect to have a working directory.
This would have a few advantages:
- Git tools would understand the repository better, making it easier to explore and understand and debug.
- Tools that want to check
.cargointo git (for caching or testing or other purposes) would be able to do so; git can track arepo.gitbare repository, but cannot track a.gitdirectory.
(This was discussed briefly in a Cargo team meeting; I'm filing this issue as a follow-up.)
If we don't worry about a one-time re-download of the index, we could solve this by just switching to a bare repository.
Metadata
Metadata
Assignees
Labels
A-gitArea: anything dealing with gitArea: anything dealing with gitC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.