Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Connection closed and repo files gone #1033

Open
@kainlite

Description

@kainlite

Hi,

I've been trying to clone a bitbucket repo and I've hit a few issues, first of all it closes the connection and deletes all local files, I've tried different options for CloneOptions with no change at all, like SingleBranch: true, or Tags: git.NoTags,

$ go run .
Counting objects: 212302, done.
Compressing objects: 100% (64830/64830), done.
Total 212302 (delta 149473), reused 204905 (delta 144107)
close tcp 192.168.1.254:40626->18.205.93.1:22: use of closed network connection

$ go version
go version go1.11.2 linux/amd64
package main

import (
        "fmt"
        "os"

        git "gopkg.in/src-d/go-git.v4"
)

func main() {
        _, err := git.PlainClone("./foo", false, &git.CloneOptions{
                URL:      "[email protected]:org/repo.git",
                Progress: os.Stdout,
        })
        fmt.Println(err)
}

I don't have a public repo to reproduce the issue, but it also does not happen with other repos that I'm using, is there something I can do or check to make this work?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions