`RepositoryInitOptions::description` is ignored
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.1k
- Forks
- 450
- Avg merge
- 11m
- Merged PRs (30d)
- 1
Description
RepositoryInitOptions::description seems to be ignored:
// src/main.rs
fn main() -> Result<(), Box<dyn std::error::Error>> {
let _ = git2::Repository::init_opts(
"test",
git2::RepositoryInitOptions::new().description("test"),
)?;
Ok(())
}
$ cargo run
$ cat test/.git/description
Unnamed repository; edit this file 'description' to name the repository.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproduction in src/main.rs and trace Repository::init_opts with RepositoryInitOptions::description. Run the example and inspect test/.git/description; done means the supplied description is written instead of the default text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100