mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-06 19:47:12 +02:00
What charset should be used to make patch?
This commit is contained in:
@@ -667,7 +667,7 @@ object JGitUtil {
|
||||
using(new DiffFormatter(out)){ formatter =>
|
||||
formatter.setRepository(git.getRepository)
|
||||
formatter.format(diff)
|
||||
val patch = new String(out.toByteArray)
|
||||
val patch = new String(out.toByteArray) // TODO charset???
|
||||
patch.split("\n").drop(4).mkString("\n")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user