Skip to content

v6: Clone of parent fails (worked in v5) #1723

@AriehSchneier

Description

@AriehSchneier

Bug Description

Here is a test which shows the issue (works in v5 fails in v6):

func TestCloneParentDir(t *testing.T) {
	// clone parent directory to in-memory storage
	_, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{
		URL: "../../",
	})
	require.NoError(t, err)
}

go-git Version

v6.0.0-20251112161705-8cc3e21f07a9

Steps to Reproduce

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions