Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

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

Open
kobrasz opened this issue Jan 14, 2020 · 0 comments
Open

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

kobrasz opened this issue Jan 14, 2020 · 0 comments

Comments

@kobrasz
Copy link

kobrasz commented Jan 14, 2020

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant