summaryrefslogtreecommitdiff
path: root/clone.go
diff options
context:
space:
mode:
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)
}