go-git icon indicating copy to clipboard operation
go-git copied to clipboard

Can't clone repo, unexpected client error: reference not found,

Open kobrasz opened this issue 5 years ago • 0 comments

I can't clone from private repository. I found out that go-git checking in method createHeadIfCorrectReference if reference.Hash() == *a.Head but my repo not contain reference that commit is equal to repository HEAD commit. In &git.CloneOptions I only use Auth and URL. My output when doing git remote show origin on repo clonned by git clone:

  • remote origin Fetch URL: ** Push URL: ** HEAD branch: (unknown) Remote branch: master tracked Local branch configured for 'git pull': master merges with remote master Local ref configured for 'git push': master pushes to master (up to date)

Can someone help me with this? The problem is with my &git.CloneOptions or with method that I'm pushing to remote?

kobrasz avatar Jan 14 '20 13:01 kobrasz