* [EGIT PATCH] Allow non-ASCII ref names when writing packs
@ 2009-01-03 22:04 Robin Rosenberg
2009-01-03 22:11 ` Shawn O. Pearce
0 siblings, 1 reply; 2+ messages in thread
From: Robin Rosenberg @ 2009-01-03 22:04 UTC (permalink / raw)
To: spearce; +Cc: git, Robin Rosenberg
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
.../org/spearce/jgit/transport/PacketLineOut.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Disovered this bug when trying to clone a local repo with some "funny"
ref names. C Git handles them so jgit should too.
-- robin
diff --git a/org.spearce.jgit/src/org/spearce/jgit/transport/PacketLineOut.java b/org.spearce.jgit/src/org/spearce/jgit/transport/PacketLineOut.java
index aae4be5..cb6d89a 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/transport/PacketLineOut.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/transport/PacketLineOut.java
@@ -54,7 +54,7 @@ PacketLineOut(final OutputStream i) {
}
void writeString(final String s) throws IOException {
- writePacket(Constants.encodeASCII(s));
+ writePacket(Constants.encode(s));
}
void writePacket(final byte[] packet) throws IOException {
--
1.6.1.rc3.56.gd0306
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-03 22:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-03 22:04 [EGIT PATCH] Allow non-ASCII ref names when writing packs Robin Rosenberg
2009-01-03 22:11 ` Shawn O. Pearce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox