Skip to content

Commit 8b5af54

Browse files
vhvb1989Copilot
andcommitted
Fix missing branchAndPath variable after PR review refactor
The PR review suggestion removed the branchAndPath assignment but left a reference to it. Replace with parts[1] directly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent bc62232 commit 8b5af54

File tree

1 file changed

+1
-1
lines changed
  • cli/azd/extensions/azure.ai.agents/internal/cmd

1 file changed

+1
-1
lines changed

cli/azd/extensions/azure.ai.agents/internal/cmd/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ func (a *InitAction) parseGitHubUrlNaive(manifestPointer string) *GitHubUrlInfo
16151615
repoPath := strings.TrimPrefix(parts[0], "/")
16161616
repoSlug := repoPath
16171617

1618-
branch, filePath, ok := strings.Cut(branchAndPath, "/")
1618+
branch, filePath, ok := strings.Cut(parts[1], "/")
16191619
if !ok {
16201620
return nil
16211621
}

0 commit comments

Comments
 (0)