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 stdout #285

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/3mkrz4yy3j522
+3 -2
Diff #1
+3 -2
knotserver/git/diff.go
··· 145 145 return "", nil, err 146 146 } 147 147 148 - formatPatch, err := patchutil.ExtractPatches(stdout.String()) 148 + raw := stdout.String() 149 + formatPatch, err := patchutil.ExtractPatches(raw) 149 150 if err != nil { 150 151 return "", nil, err 151 152 } ··· 154 155 return "", nil, fmt.Errorf("running format-patch on single commit produced more than on patch") 155 156 } 156 157 157 - return stdout.String(), &formatPatch[0], nil 158 + return raw, &formatPatch[0], nil 158 159 } 159 160 160 161 func (g *GitRepo) ResolveRevision(revStr string) (*object.Commit, error) {

History

2 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
knotserver/git: fix double allocation of stdout
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 stdout
expand 0 comments