question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to clone organization repo

See original GitHub issue

Describe the bug

Pasting a url for a private repo under an organization my github user is associated with, I get a 404 error connecting through the linux GitHub Desktop client. This works using the same credentials through git on the command line, and on the windows version of the client.

Version & OS

GitHub Desktop Version 2.3.1-linux1 elementary OS 5.1.2 Hera

Steps to reproduce the behavior

  1. File > Clone Repository
  2. Paste HTTPS://URL.git of organization repo
  3. Enter Authorized User Credentials
  4. See error

Expected behavior

Clone repo to local, and display in client

Actual behavior

Client reports that the repo is not found

Logs

2020-03-17T03:14:31.609Z - warn: [ui] fetchRepository: ‘{organization\repo name}’ returned a 404 2020-03-17T03:14:31.610Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: {repo name} - jfgordon2 (has token) 2020-03-17T03:14:32.731Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 1.084s) 2020-03-17T03:14:32.732Z - error: [ui] git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin exited with an unexpected code: 128. stderr: remote: Repository not found. fatal: repository ‘{repo url}’ not found

(The error was parsed as 8: The repository does not seem to exist anymore. You may not have access, or it may have been deleted or renamed.)

2020-03-17T03:14:32.975Z - info: [ui] [fetchPushControl] unable to check if branch is potentially pushable

Additional context

My local repos are pulling just fine, and I am not an admin in the organization.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
shiftkeycommented, Mar 26, 2020

What you suggest to do then? On windows and Mac is working properly.

This is because I maintain the unofficial releases for Linux, and it doesn’t contain the OAuth details required to behave the same. This is being discussed in https://github.com/desktop/desktop/issues/1525 (please upvote if you care) but #72 is tracking this known limitation.

As I want to keep this separate until the team is interested in official support, the only other option here would be for me to embed a new set of OAuth details that would belong to a distinct entity to avoid confusion with the main “GitHub Desktop” product. That’s branding work I’m not able to take on currently, and I want to focus currently on ensuring the app installs and works on various distros.

Introducing a new brand also won’t address the solution completely because organization administrators need to approve access to this new application.

The command line works here because you’re creating a token directly associated with your account, rather than delegating to an OAuth application.

0reactions
shiftkeycommented, Mar 26, 2020

Closing this out because #72 is the underlying issue here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting cloning errors - GitHub Docs
Typos happen, and repository names are case-sensitive. If you try to clone git@github.com:user/repo.git , but the repository is really named User/Repo ...
Read more >
Github Organization "remote: Repository not found." via Https ...
I moved a repo to an organization I was owner of, but I was unable to push to it after updating the origin...
Read more >
Can't clone a Git repository on Git hub in an organization
I tried to create a Git repository in a new git hub organization. It was a private repository and when I tried to...
Read more >
Unable to clone Gitlab repository - Stoplight Support
When taking actions like "Commit & Publish" or switching branches, you are blocked by an authorization pop up stating "Unable to clone repo....
Read more >
How to Clone a Private Repository in GitHub - Nira
Before you can clone a GitHub repository, you need to make sure that Git has been properly installed on your computer. You could...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found