| Summary: | Extra double quotes in the config file section name | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Dobes Vandermeer <dobesv> |
| Component: | Core | Assignee: | Mathias Kinzler <mathias.kinzler> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | stefan.lay |
| Version: | unspecified | ||
| Target Milestone: | 0.9.0-M3 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Dobes Vandermeer
Branch name validation code review at http://egit.eclipse.org/r/#change,1144 Branch name validation and specification does acutally allow #. The bug is somewhere in the clone coding. The command line clones correctly. Ok, this happens in Config.toText():
public String toText() {
final StringBuilder out = new StringBuilder();
for (final Entry e : state.get().entryList) {
if (e.prefix != null)
out.append(e.prefix);
if (e.section != null && e.name == null) {
out.append('[');
out.append(e.section);
if (e.subsection != null) {
out.append(' ');
out.append('"');
out.append(escapeValue(e.subsection));
out.append('"');
}
The escapeValue() method proably needs to be extended so that it doesn't "inquote" in this special case.
A fix is proposed at http://egit.eclipse.org/r/#change,1452 Merged as 2941d23e7ebaa524e7d9efbaf69565a57042d048 |