Monorepo for Tangled tangled.org
772
fork

Configure Feed

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

knotserver/git: allow applying empty patches #11

open opened by oppi.li targeting master from op/orsknlnxvwnx

will just create an empty commit with title/body if a mailbox is supplied with an empty patch.

Signed-off-by: oppiliappan me@oppi.li

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3mkhpcxwhrl22
+2 -2
Diff #0
+2 -2
knotserver/git/merge.go
··· 175 175 return fmt.Errorf("failed to stage changes: %w", err) 176 176 } 177 177 178 - commitArgs := []string{"-C", g.path, "commit"} 178 + commitArgs := []string{"-C", g.path, "commit", "--allow-empty"} 179 179 180 180 // Set author if provided 181 181 authorName := opts.AuthorName ··· 237 237 } 238 238 239 239 var stderr bytes.Buffer 240 - cmd := exec.Command("git", "-C", g.path, "am", tmpPatch) 240 + cmd := exec.Command("git", "-C", g.path, "am", "--allow-empty", tmpPatch) 241 241 cmd.Stderr = &stderr 242 242 243 243 head, err := g.r.Head()

History

1 round 0 comments
sign up or login to add to the discussion
oppi.li submitted #0
1 commit
expand
knotserver/git: allow applying empty patches
merge conflicts detected
expand
  • knotserver/git/merge.go:175
expand 0 comments