Hi all,
This is a very minor bug I noticed (perhaps not even worth fixing because it’s
not harmful), but I thought that I’d point it out.
I found that if I used `git branch --edit-description` to add and remove
descriptions a couple times, it would accumulate extra lines in my
`.git/config` instead of removing lines altogether or combining things where
appropriate.
To reproduce:
git init
git commit --allow-empty -m "Initial commit”
git branch --edit-description master # and type in some text
git branch --edit-description master # and remove all the text
git branch --edit-description master # and type in some text again
Now, when running `tail -n 3 .git/config`, you see:
[branch "master"]
[branch "master"]
description = asdf\n
This doesn’t seem right. And if the steps are repeated, the junk accumulates.
Btw, the output of `git --version` is "git version 2.2.1”.
Is this something that we want to fix?
If yes, and if someone can point me in the right direction, I’d be happy to try
to work on it and send in a patch. I think the issue is in the implementation
of `git_config_set` and company, but I haven’t really investigated it very
deeply.
Regards,
Anish--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html