aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2021-10-26 12:31:59 +0200
committerGitHub <noreply@github.com>2021-10-26 12:31:59 +0200
commit99457e570d34320b12fb4fcd0f054f3d0b1d3eec (patch)
tree37d000185d7335402e0a2be17f46203e535a3b0b /worktree.go
parent243e7c801995fa0146b3564f41321ca234a8b1d2 (diff)
parentc4b334d4679d6fc38e13b2d84af2d832f6c47566 (diff)
downloadgo-git-99457e570d34320b12fb4fcd0f054f3d0b1d3eec.tar.gz
Merge pull request #375 from noerw/add-remoteurl-option
Remote: add RemoteURL to {Fetch,Pull,Push}Options
Diffstat (limited to 'worktree.go')
-rw-r--r--worktree.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/worktree.go b/worktree.go
index f23d9f1..362d10e 100644
--- a/worktree.go
+++ b/worktree.go
@@ -73,6 +73,7 @@ func (w *Worktree) PullContext(ctx context.Context, o *PullOptions) error {
fetchHead, err := remote.fetch(ctx, &FetchOptions{
RemoteName: o.RemoteName,
+ RemoteURL: o.RemoteURL,
Depth: o.Depth,
Auth: o.Auth,
Progress: o.Progress,