Skip to content

Cannot see list of branches in desktop UI #2522

Closed

Description

@yashketkar

Description

Cannot see list of branches in desktop UI

Version

GitHub Desktop version: 0.8.1-beta1

OS version: Windows 10 ( Microsoft Windows [Version 10.0.15063] )

Steps to Reproduce

  1. Open Github Desktop
  2. Click on the current branch dropdown
    (I am using it on a Github Enterprise repo)

Expected behavior: Show the branches seen here in the desktop UI
image

Actual behavior: Cannot see the list of branches
image

Logs

2017-08-22.desktop.beta.log.txt

Additional Information

Activity

  1. tierninho commented on Aug 22, 2017

    @tierninho
    Contributor

    Confirming the same on Mac / Windows for all repos (public/ private/ Enterprise/ local/ dotcom/)

  2. added
    bug
    on Aug 22, 2017
  3. TytaniumDev commented on Aug 22, 2017

    @TytaniumDev

    This is also happening to me as of the latest update that I did this morning

  4. self-assigned this
    on Aug 22, 2017
  5. shiftkey commented on Aug 22, 2017

    @shiftkey
    Member

    Just a heads up - if you're encountering this with 0.8.1-beta1 you can switch back to the stable channel by reinstalling from desktop.github.com if this is blocking your work.

  6. shiftkey commented on Aug 22, 2017

    @shiftkey
    Member

    Cool, I can't reproduce this in dev mode but I can when it's built for production - so something interesting in #2512 is probably to blame here.

    EDIT: nope, reverting all those commits doesn't make the issue go away. This one is gonna be fun to debug! :hurtrealbad:

  7. shiftkey commented on Aug 22, 2017

    @shiftkey
    Member

    The root cause of this is our parsing of Git output isn't working. It expects a delimiter string to be included at the end of each line, but it isn't for production output.

    Here's the diff of Git's output in both cases (production on left, dev mode on right):

    1F is the ASCII code for "unit separator" - not sure if is important to Node and why it might be meddling here to drop these bytes in the stream.

  8. shiftkey commented on Aug 23, 2017

    @shiftkey
    Member

    Narrowing this down to the minification process around this. Here's the arguments being passed in for0.8.0:

    const Z = '1F'
      , Q = _StringfromCharCode(parseInt(Z, 16))
      , ee = ['%(refname)', '%(refname:short)', '%(upstream:short)', '%(objectname)', '%(author)', '%(parent)', '%(subject)', '%(body)', `%${Z}`].join('%00');
      J && J.length || (J = ['refs/heads', 'refs/remotes']);
      const ne = yield U.git(['for-each-ref', `--format=${ee}`, ...J], X.path, 'getBranches')
    

    And here's the arguments passed in for 0.8.1-beta1:

    const o = yield i.git(['for-each-ref', `--format=${'%(refname)%00%(refname:short)%00%(upstream:short)%00%(objectname)%00%(author)%00%(parent)%00%(subject)%00%(body)%00'}`, ...t], e.path, 'getBranches')
    

    And while it's neat that it's aggressively inlining the result, it seems to be happy to drop the %1F control character from the string.

  9. shiftkey commented on Aug 23, 2017

    @shiftkey
    Member

    FYI: the 0.8.1-beta2 update is now available and contains this fix.

  10. locked as resolved and limited conversation to collaborators on Jul 21, 2018
  11. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions