summaryrefslogtreecommitdiff
path: root/clone.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2021-09-05 15:44:18 -0700
committerGitHub <[email protected]>2021-09-05 15:44:18 -0700
commitf1fa96c7b7f548389c7560d3a1a0bce83be56c9f (patch)
treed78a98f00e1d1e1419ca14223784f15db2de2b18 /clone.go
parentdbe032c347b1a1308a4b880e7c5a06d8dfb4d507 (diff)
Add support for custom smart transports (#806)
This change adds support for git smart transports. This will be then used to implement http, https, and ssh transports that don't rely on the libgit2 library.
Diffstat (limited to 'clone.go')
-rw-r--r--clone.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/clone.go b/clone.go
index 4921e12..b02a43e 100644
--- a/clone.go
+++ b/clone.go
@@ -85,6 +85,7 @@ func remoteCreateCallback(
// clear finalizer as the calling C function will
// free the remote itself
runtime.SetFinalizer(remote, nil)
+ remote.repo.Remotes.untrackRemote(remote)
return C.int(ErrorCodeOK)
}