aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.go
diff options
context:
space:
mode:
authorNorwin <git@nroo.de>2021-09-15 15:34:17 +0200
committerNorwin <git@nroo.de>2021-09-15 15:34:17 +0200
commit5e64929185218f53cb45b0f89fb372e06aa172be (patch)
tree07b264601b45b87ac151e7c979b39535240472dd /worktree.go
parent4ec1753b4e9324d455d3b55060020ce324e6ced2 (diff)
downloadgo-git-5e64929185218f53cb45b0f89fb372e06aa172be.tar.gz
Add RemoteURL to {Fetch,Pull,Push}Options
Can be used to override the URL to operate on: RemoteName will be ignored for the actual fetch
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,