mirror of
https://github.com/splitsh/lite.git
synced 2026-03-15 06:15:45 +01:00
Use raw commit message when splitting repository
In case the repository to be splt contains commit messages with leading newlines, the trimming that is applied when using Commit.Message() can lead to changed hashes, when comparing to the results git subsplit created. Fixes #20
This commit is contained in:
parent
da623618f5
commit
7b9ea56ae9
1 changed files with 1 additions and 1 deletions
|
|
@ -467,7 +467,7 @@ func (s *state) copyCommit(rev *git.Commit, tree *git.Tree, parents []*git.Commi
|
|||
s.logger.Printf(" copy commit \"%s\" \"%s\" \"%s\"\n", rev.Id().String(), tree.Id().String(), strings.Join(parentStrs, " "))
|
||||
}
|
||||
|
||||
message := rev.Message()
|
||||
message := rev.RawMessage()
|
||||
if s.config.Git == 1 {
|
||||
message = s.legacyMessage(rev)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue