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?
I can't clone from private repository. I found out that go-git checking in method
createHeadIfCorrectReference
ifreference.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 doinggit remote show origin
on repo clonned by git clone:Can someone help me with this? The problem is with my
&git.CloneOptions
or with method that I'm pushing to remote?