Closed
Description
When attempting to clone a newly created repository in AWS CodeCommit, that for example only contains a single commit, the following error is encountered:
reference delta not found
The following code is used to perform the clone:
repo, err := git.PlainClone(dir, false, &git.CloneOptions{
URL: url,
ReferenceName: plumbing.NewBranchReferenceName("main"),
Tags: git.AllTags,
SingleBranch: true,
Depth: 1,
})
I never encounter this issue when cloning from another source control system like Github
Metadata
Metadata
Assignees
Labels
No labels