Skip to content

Minor bug: recent branches shown incorrectly #13105

Closed

Description

@justingolden21

Describe the bug

"recent branches" does not show most recent branches

Version & OS

image

desktop 2.9.4

windows 10

Steps to reproduce the behavior

  1. create a new branch elsewhere
  2. fetch origin on desktop
  3. click on "current branch"

Expected behavior

most recent branches shown under "recent branches"

Actual behavior

other branches shown

Screenshots

image

Logs

Details

2021-10-11T17:12:55.981Z - info: [main] Received possible protocol arguments: 2
2021-10-11T17:12:55.984Z - error: [main] Malformed launch arguments received: C:\Users\Justin\AppData\Local\GitHubDesktop\app-2.9.4\GitHubDesktop.exe,--squirrel-firstrun
2021-10-11T17:12:56.766Z - info: [ui] [AppStore] loading 137 repositories from store
2021-10-11T17:12:56.768Z - info: [ui] [AppStore] found account: justingolden21 (Justin Golden)
2021-10-11T17:12:57.215Z - info: [ui] launching: 2.9.4 (Windows 10.0.19042)
2021-10-11T17:12:57.215Z - info: [ui] execPath: 'C:\Users\Justin\AppData\Local\GitHubDesktop\app-2.9.4\GitHubDesktop.exe'
2021-10-11T17:13:41.594Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: desktopclock - justingolden21 (has token)
2021-10-11T17:13:42.622Z - info: [ui] [Timing] Action 'checkout branch from list' for 'justingolden21/desktopclock' took 1.028s
2021-10-11T17:13:43.075Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: desktopclock - justingolden21 (has token)
2021-10-11T17:13:44.998Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: desktopclock - justingolden21 (has token)
2021-10-11T17:14:25.270Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: justingolden21.github.io - justingolden21 (has token)
2021-10-11T17:14:26.553Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 1.230s)
2021-10-11T17:28:16.750Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: desktopclock - justingolden21 (has token)
2021-10-11T17:28:17.835Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 1.026s)
2021-10-11T17:28:25.720Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: desktopclock - justingolden21 (has token)
2021-10-11T17:28:27.903Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: depthofrevenge.github.io - justingolden21 (has token)
2021-10-11T17:28:29.259Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 1.305s)
2021-10-11T17:28:32.166Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://rijeka.sdsu.edu:443/Rclodeca/cs583_f2019_clode_ryan_proj_02.git/' 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.)
2021-10-11T17:28:42.824Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://rijeka.sdsu.edu:443/JContreras/cs583_f2019_contreras_jackson_proj_02.git/' 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.)
2021-10-11T17:28:53.963Z - info: [ui] Executing getStatus: git --no-optional-locks status --untracked-files=all --branch --porcelain=2 -z (took 11.086s)
2021-10-11T17:28:54.705Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://rijeka.sdsu.edu:443/JiaxiChen/cs583_f2019_chen_jiaxi_proj_02.git/' 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.)
2021-10-11T17:29:19.131Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://rijeka.sdsu.edu:443/chenkaiyu/cs583_f2019_chen_kaiyu_proj_02.git/' 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.)
2021-10-11T17:29:20.489Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://rijeka.sdsu.edu:443/Diego/cs_583_f2019_castanon_diego_proj_02.git/' 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.)
2021-10-11T17:29:22.945Z - info: [ui] Executing getStatus: git --no-optional-locks status --untracked-files=all --branch --porcelain=2 -z (took 2.408s)
2021-10-11T17:29:47.106Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://rijeka.sdsu.edu:443/rwb/cs583_f2019_brown_robert_proj_2.git/' 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.)
2021-10-11T17:29:48.587Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://rijeka.sdsu.edu:443/abotros/cs583_f2019_andrewww_botros_proj_02.git/' 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.)
2021-10-11T17:29:49.926Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://rijeka.sdsu.edu:443/bargsteen/cs583_f2019_bargsteen_kasper_proj_02.git/' 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.)
2021-10-11T17:30:23.595Z - info: [ui] Executing getStatus: git --no-optional-locks status --untracked-files=all --branch --porcelain=2 -z (took 3.885s)
2021-10-11T17:30:24.349Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://rijeka.sdsu.edu:443/arshsb77/cs583_f2019_ballagan_arshdeep_proj_02.git/' 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.)
2021-10-11T17:30:25.178Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://rijeka.sdsu.edu:443/nourali/cs583_f2019_ali_nour_proj_1.git/' 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.)
2021-10-11T17:30:28.983Z - info: [ui] Executing getStatus: git --no-optional-locks status --untracked-files=all --branch --porcelain=2 -z (took 3.731s)
2021-10-11T17:30:29.716Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://rijeka.sdsu.edu:443/Arab/cs853_f2019_arab_safiya_proj_02.git/' 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.)
2021-10-11T17:31:18.672Z - info: [ui] Executing getStatus: git --no-optional-locks status --untracked-files=all --branch --porcelain=2 -z (took 1.102s)
2021-10-11T17:31:19.048Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: gitignore - justingolden21 (has token)
2021-10-11T17:31:20.782Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 1.684s)
2021-10-11T17:31:46.668Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.181s)


log

Activity

  1. steveward commented on Oct 18, 2021

    @steveward
    Contributor

    Thanks for the issue @justingolden21. The Recent branches list uses the reflog to find the most recent branches that were checked out locally, and since your keyboardshortcuts branch hasn't been checked out it does not appear there. There's some discussion around this in the still-open #5155, so I'll add this there.

  2. justingolden21 commented on Oct 18, 2021

    @justingolden21
    Author

    Thank you @steveward for that. I have a vague understanding of why it occurs, but I don't think it's good UX personally. I'm glad people are discussing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions