From aef2642581348e56b6031087288c40aae268cc8b Mon Sep 17 00:00:00 2001 From: Frederick Zhang Date: Thu, 16 Jan 2025 15:07:33 +1100 Subject: [PATCH] fixup! Add comments and a bit of code cleanup --- git/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/client.go b/git/client.go index 5e47098c2..9ef6c152e 100644 --- a/git/client.go +++ b/git/client.go @@ -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