Skip to content

Commit 133ccfb

Browse files
committed
why
Signed-off-by: Guillaume de Rouville <guillaume@dagger.io>
1 parent a3aba5c commit 133ccfb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

repository/repository.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,14 @@ func (r *Repository) ensureUserRemote(ctx context.Context) error {
153153
return err
154154
}
155155

156-
_, err := RunGitCommand(ctx, r.userRepoPath, "remote", "add", containerUseRemote, r.forkRepoPath)
156+
remotePath := r.forkRepoPath
157+
_, err := RunGitCommand(ctx, r.userRepoPath, "remote", "add", containerUseRemote, remotePath)
157158
return err
158159
}
159160

160161
if currentForkPath != r.forkRepoPath {
161-
_, err := RunGitCommand(ctx, r.userRepoPath, "remote", "set-url", containerUseRemote, r.forkRepoPath)
162+
remotePath := r.forkRepoPath
163+
_, err := RunGitCommand(ctx, r.userRepoPath, "remote", "set-url", containerUseRemote, remotePath)
162164
return err
163165
}
164166

0 commit comments

Comments
 (0)