Repository navigation
repository list associated with account in 'Clone Repository' view never shown #4856
Description
Description
Click the 'Clone Repo' menu option.
Up pops the "Clone a Repository" dialog.
There's a "Loading repositories" text in the middle with a spinny-arrow.
The arrow spins forever, and nothing every loads or changes.
Version
- GitHub Desktop:
- Operating system:
Windows 10
Steps to Reproduce
Click the 'Clone Repo' menu option.
Up pops the "Clone a Repository" dialog.
There's a "Loading repositories" text in the middle with a spinny-arrow.
The arrow spins forever, and nothing every loads or changes.
Expected Behavior
Something will load
Actual Behavior
The arrow spins forever, and nothing every loads or changes.
Additional Information
Logs
2018-06-03T00:02:18.974Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 5.556s)
2018-06-03T00:07:26.977Z - info: [ui] Stats reported.
2018-06-03T00:07:53.193Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 6.354s)
2018-06-03T00:13:23.926Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.135s)
2018-06-03T00:18:56.279Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.457s)
2018-06-03T00:24:28.286Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 5.492s)
2018-06-03T00:29:59.113Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 4.313s)
2018-06-03T00:35:30.079Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.191s)
2018-06-03T00:41:01.807Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.102s)
2018-06-03T00:46:29.900Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.095s)
2018-06-03T00:51:58.258Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.561s)
2018-06-03T00:57:30.529Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 5.278s)
2018-06-03T01:03:01.402Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.256s)
2018-06-03T01:04:19.939Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: aa - cliffclick (has token)
2018-06-03T01:04:30.648Z - info: [ui] Executing push: git -c credential.helper= push origin master:master --progress (took 10.697s)
2018-06-03T01:04:33.885Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.233s)
2018-06-03T01:08:31.726Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 4.646s)
2018-06-03T01:14:02.759Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 4.449s)
2018-06-03T01:19:34.925Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 4.067s)
2018-06-03T01:25:10.520Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.115s)
2018-06-03T01:30:41.142Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.355s)
2018-06-03T01:36:13.310Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 4.984s)
2018-06-03T01:41:41.956Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.409s)
2018-06-03T01:47:10.081Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.113s)
2018-06-03T01:52:36.659Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.292s)
2018-06-03T01:58:06.183Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 4.607s)
2018-06-03T02:03:33.448Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.187s)
2018-06-03T02:09:02.157Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.933s)
2018-06-03T02:14:30.742Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.991s)
2018-06-03T02:19:59.597Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.531s)
2018-06-03T02:25:27.675Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.181s)
2018-06-03T02:30:55.650Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.300s)
2018-06-03T02:36:22.189Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.223s)
2018-06-03T02:41:49.704Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.666s)
2018-06-03T05:11:49.425Z - info: [ui] [AppStore] loading 6 repositories from store
2018-06-03T05:11:49.427Z - info: [ui] [AppStore] found account: cliffclick (Cliff Click)
2018-06-03T05:11:49.700Z - info: [ui] launching: 1.2.2 (Windows 10.0.16299)
2018-06-03T05:11:49.701Z - info: [ui] execPath: 'C:\Users\Cliff\AppData\Local\GitHubDesktop\app-1.2.2\GitHubDesktop.exe'
2018-06-03T05:11:56.641Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.504s)
2018-06-03T05:17:05.451Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.629s)
2018-06-03T05:22:16.453Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.296s)
2018-06-03T05:27:25.818Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.722s)
2018-06-03T05:32:36.736Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 3.228s)
2018-06-03T05:37:47.779Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.668s)
2018-06-03T05:43:00.982Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 5.296s)
2018-06-03T05:48:17.114Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 5.237s)
2018-06-03T05:58:36.978Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.144s)
2018-06-03T06:03:46.925Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.250s)
2018-06-03T06:11:26.726Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: aa - cliffclick (has token)
2018-06-03T06:11:32.472Z - info: [ui] Executing push: git -c credential.helper= push origin master:master --progress (took 5.734s)
2018-06-03T16:55:06.865Z - info: [ui] [AppStore] loading 6 repositories from store
2018-06-03T16:55:06.867Z - info: [ui] [AppStore] found account: cliffclick (Cliff Click)
2018-06-03T16:55:07.249Z - info: [ui] launching: 1.2.2 (Windows 10.0.16299)
2018-06-03T16:55:07.250Z - info: [ui] execPath: 'C:\Users\Cliff\AppData\Local\GitHubDesktop\app-1.2.2\GitHubDesktop.exe'
2018-06-03T16:57:22.365Z - info: [main] Received possible protocol arguments: 4
2018-06-03T16:57:22.365Z - info: [main] Processing protocol url
2018-06-03T16:57:22.369Z - warn: [ui] Open Repository from URL failed, did not find repository: https://github.com/ngallagher/simpleframework.git - payload: {"branch":null,"filepath":null,"name":"open-repository-from-url","pr":null,"url":"https://github.com/ngallagher/simpleframework.git"}
2018-06-03T16:57:32.981Z - info: [main] Received possible protocol arguments: 4
2018-06-03T16:57:32.981Z - info: [main] Processing protocol url
2018-06-03T16:59:14.566Z - warn: [ui] Open Repository from URL failed, did not find repository: https://github.com/ngallagher/simpleframework.git - payload: {"branch":null,"filepath":null,"name":"open-repository-from-url","pr":null,"url":"https://github.com/ngallagher/simpleframework.git"}
2018-06-03T16:59:31.509Z - info: [ui] [AppStore] loading 6 repositories from store
2018-06-03T16:59:31.511Z - info: [ui] [AppStore] found account: cliffclick (Cliff Click)
2018-06-03T16:59:31.821Z - info: [ui] launching: 1.2.2 (Windows 10.0.16299)
2018-06-03T16:59:31.821Z - info: [ui] execPath: 'C:\Users\Cliff\AppData\Local\GitHubDesktop\app-1.2.2\GitHubDesktop.exe'
2018-06-03T16:59:33.979Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: aa - cliffclick (has token)
Activity
[-]'clone repo' hangs[/-][+]repository list associated with account in 'Clone Repository' view never shown[/+]shiftkey commentedon Jun 3, 2018
@cliffclick thanks for the report. We load this list of repositories on-demand, and if your account has access to lots of repositories (like mine) then it can take a while to enumerate the whole list (over a minute, even on a decent connection). I think that's what's happening on your machine - does that sound right?
We had a discussion about changing this in #2770 but settled on the current approach because it's not easy to quickly get new repositories from the API.
cliffclick commentedon Jun 4, 2018
niik commentedon Jun 7, 2018
Hey @cliffclick. Seems like, while not ideal, the repository list is indeed working so I'm going to close this issue out. Please let us know if you have any other questions we can help out with.
As a tip/workaround I'd recommend having a look at the URL tab in the clone repository dialog. In it you can enter either a full repository url or a shorthand such as
cliffclick/testrepoto quickly clone it if you already know the name of the repository. You should also be able to click on the "Open in Desktop" button on the website itself.We'll be keeping an eye out for ways to speed up the loading of repositories in the future. Just out of curiosity, were you looking to clone a repository from GitHub.com or from a private GitHub Enterprise instance?
cliffclick commentedon Jun 7, 2018