Monorepo for Tangled tangled.org
777
fork

Configure Feed

Select the types of activity you want to include in your feed.

knotserver/git: fix double allocation of patch string #284

open opened by oppi.li targeting master from op/ozrwlpyqxkmn
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3mkrz4yy3dm22
+3 -2
Diff #1
+3 -2
knotserver/git/diff.go
··· 108 108 return nil, err 109 109 } 110 110 111 - diffs, _, err := gitdiff.Parse(strings.NewReader(patch.String())) 111 + patchStr := patch.String() 112 + diffs, _, err := gitdiff.Parse(strings.NewReader(patchStr)) 112 113 if err != nil { 113 114 return nil, err 114 115 } ··· 116 117 return &types.DiffTree{ 117 118 Rev1: commit1.Hash.String(), 118 119 Rev2: commit2.Hash.String(), 119 - Patch: patch.String(), 120 + Patch: patchStr, 120 121 Diff: diffs, 121 122 }, nil 122 123 }

History

2 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
knotserver/git: fix double allocation of patch string
merge conflicts detected
expand
  • knotserver/git/diff.go:108
expand 0 comments
oppi.li submitted #0
1 commit
expand
knotserver/git: fix double allocation of patch string
expand 0 comments