fixup! Add comments and a bit of code cleanup

This commit is contained in:
Frederick Zhang 2025-01-16 15:07:33 +11:00
parent d289ddd617
commit aef2642581
No known key found for this signature in database
GPG key ID: 980A192C361BE1AE

View file

@ -410,7 +410,7 @@ func (c *Client) ReadBranchConfig(ctx context.Context, branch string) (BranchCon
// Check to see if we can resolve the @{push} revision syntax. This is the easiest way to get
// the name of the push remote.
//We ignore errors resolving simple push.Default settings as these are handled downstream
// We ignore errors resolving simple push.Default settings as these are handled downstream
revParseOut, _ := c.revParse(ctx, "--verify", "--quiet", "--abbrev-ref", branch+"@{push}")
return parseBranchConfig(outputLines(branchCfgOut), strings.TrimSuffix(remotePushDefaultOut, "\n"), firstLine(revParseOut)), nil