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.

Clone/commit of private repo corrupts every time #621

Open
@bigUNO

Description

@bigUNO

When trying to clone a private repo in bitbucket.org, the git directory gets corrupted. I can clone HelloWorld and make commits so the logic in that portion of the code works.

git commit -m "example go-git commit"
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x728dc8]

goroutine 1 [running]:
gopkg.in/src-d/go-git%2ev4.(*buildTreeHelper).copyTreeToStorageRecursive(0xc0423eddb8, 0xc042414540, 0x21, 0x0, 0x0, 0x0, 0xc000000000, 0x44260e, 0x0)
        C:/Users/johnsol/go/src/gopkg.in/src-d/go-git.v4/worktree_commit.go:167 +0x78
gopkg.in/src-d/go-git%2ev4.(*buildTreeHelper).copyTreeToStorageRecursive(0xc0423eddb8, 0xc04210cee0, 0x17, 0xc042191540, 0x0, 0x0, 0xc000000000, 0x44260e, 0x0)
        C:/Users/johnsol/go/src/gopkg.in/src-d/go-git.v4/worktree_commit.go:175 +0x218
gopkg.in/src-d/go-git%2ev4.(*buildTreeHelper).copyTreeToStorageRecursive(0xc0423eddb8, 0xc04210ce20, 0x15, 0xc0421914a0, 0x0, 0x0, 0xc000000000, 0x0, 0x0)
        C:/Users/johnsol/go/src/gopkg.in/src-d/go-git.v4/worktree_commit.go:175 +0x218
gopkg.in/src-d/go-git%2ev4.(*buildTreeHelper).copyTreeToStorageRecursive(0xc0423eddb8, 0xc0421e2080, 0xd, 0xc0421913b0, 0x0, 0x0, 0x0, 0x0, 0x0)
        C:/Users/johnsol/go/src/gopkg.in/src-d/go-git.v4/worktree_commit.go:175 +0x218
gopkg.in/src-d/go-git%2ev4.(*buildTreeHelper).copyTreeToStorageRecursive(0xc0423eddb8, 0xc042182040, 0x4, 0xc042191360, 0x0, 0x0, 0x0, 0x0, 0x0)
        C:/Users/johnsol/go/src/gopkg.in/src-d/go-git.v4/worktree_commit.go:175 +0x218
gopkg.in/src-d/go-git%2ev4.(*buildTreeHelper).copyTreeToStorageRecursive(0xc0423eddb8, 0x0, 0x0, 0xc042191090, 0x0, 0x0, 0xc000000000, 0xc042204bd0, 0x9a5da0)
        C:/Users/johnsol/go/src/gopkg.in/src-d/go-git.v4/worktree_commit.go:175 +0x218
gopkg.in/src-d/go-git%2ev4.(*buildTreeHelper).BuildTree(0xc0423f1db8, 0xc042204bd0, 0x0, 0x0, 0x0, 0x7ffe0014, 0x1d346842c37a532)
        C:/Users/johnsol/go/src/gopkg.in/src-d/go-git.v4/worktree_commit.go:127 +0x254
gopkg.in/src-d/go-git%2ev4.(*Worktree).Commit(0xc0423dd3c0, 0x801da2, 0xe, 0xc0423edf38, 0x0, 0x0, 0x0, 0x0, 0x40f05c)
        C:/Users/johnsol/go/src/gopkg.in/src-d/go-git.v4/worktree_commit.go:39 +0x149
main.copyMachine()
        C:/Users/johnsol/go/src/duplicator/duplicator.go:89 +0x4e6
main.main()
        C:/Users/johnsol/go/src/duplicator/duplicator.go:102 +0x27
exit status 2

When inspecting the repo after the program runs I get the following message.

λ git status
fatal: internal error: ce_mode is 40000

I'm wondering if this has more to do with SSH/Pageant on Windows. (I'm not a native Windows user). Can someone get me pointed in the right direction?

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