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.

2.3.2 beta has a UI Loop when checkout in isn't possible

See original GitHub issue

Describe the bug

When trying to checkout a PR, it goes into a fun loop retrying the checkout but not presenting an error (screenshot below).

At the console, here’s what the error was:

[19:45]  ❯ git checkout pr/1389
error: Your local changes to the following files would be overwritten by checkout:
        tests/RedisConfigs/Sentinel/sentinel-26379.conf
        tests/RedisConfigs/Sentinel/sentinel-26380.conf
Please commit your changes or stash them before you switch branches.
Aborting

[19:46]  ❯ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

Note that the 2 files in question do not show as pending differences, because they have both been:

git update-index --assume-unchanged <file>

(this is because Redis stores state in the config, and we shouldn’t be updating master with that state constantly)

This combination seems to confuse the UI and it doesn’t present an error…it just gets in a fun loop. Closing the app is the only way I’ve found to escape it.

Version & OS

OS: Windows 10 Client: 2.3.2-beta5

Steps to reproduce the behavior

See above description…unfortunately not trivial to reproduce. But it’s possible this repros without any PR needed on any branch checkout.

Expected behavior

User gets an error indicating why checkout isn’t possible.

Actual behavior

Infinite merry-go-round loop of fun!

Screenshots

GHD-Loop

Logs

Logs have sensitive data from our GHE instance, but the only related bits are this in a loop:

2020-03-16T23:45:28.667Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: StackExchange.Redis - NickCraver (has token)
2020-03-16T23:45:29.139Z - error: [ui] `git -c credential.helper= -c protocol.version=2 checkout --progress pr/1389 --recurse-submodules --` exited with an unexpected code: 1.
stderr:
error: Your local changes to the following files would be overwritten by checkout:
	tests/RedisConfigs/Sentinel/sentinel-26379.conf
	tests/RedisConfigs/Sentinel/sentinel-26380.conf
Please commit your changes or stash them before you switch branches.
Aborting

(The error was parsed as 37: Unable to switch branches as there are working directory changes which would be overwritten. Please commit or stash your changes.)
2020-03-16T23:45:29.671Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: StackExchange.Redis - NickCraver (has token)
2020-03-16T23:45:30.127Z - error: [ui] `git -c credential.helper= -c protocol.version=2 checkout --progress pr/1389 --recurse-submodules --` exited with an unexpected code: 1.
stderr:
error: Your local changes to the following files would be overwritten by checkout:
	tests/RedisConfigs/Sentinel/sentinel-26379.conf
	tests/RedisConfigs/Sentinel/sentinel-26380.conf
Please commit your changes or stash them before you switch branches.
Aborting

(The error was parsed as 37: Unable to switch branches as there are working directory changes which would be overwritten. Please commit or stash your changes.)
2020-03-16T23:45:30.596Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: StackExchange.Redis - NickCraver (has token)
2020-03-16T23:45:31.046Z - error: [ui] `git -c credential.helper= -c protocol.version=2 checkout --progress pr/1389 --recurse-submodules --` exited with an unexpected code: 1.
stderr:
error: Your local changes to the following files would be overwritten by checkout:
	tests/RedisConfigs/Sentinel/sentinel-26379.conf
	tests/RedisConfigs/Sentinel/sentinel-26380.conf
Please commit your changes or stash them before you switch branches.
Aborting

(The error was parsed as 37: Unable to switch branches as there are working directory changes which would be overwritten. Please commit or stash your changes.)

Hope this helps!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
tierninhocommented, Jul 7, 2020
1reaction
tierninhocommented, Jul 29, 2020

@NickCraver Thanks for filing. Marking this as a bug pending further investigation.

tags: spinning, looping, loops, spins, endless

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes — Airflow Documentation
Bug Fixes¶. Run the check_migration loop at least once. Fix grid view for mapped tasks (#24059). Icons in grid view for different DAG...
Read more >
MDVA-31006: Paypal Duplicate Orders 10415 error
The MDVA-31006 patch fixes the issue where using the PayPal Express checkout payment creates duplicate orders with a 10415 error. This patch is...
Read more >
Updates - DiGidot Technologies BV
Download or view the DiGidot C4 firmware updates. This list of firmware versions includes a detailed description: fixes, new features and improvements.
Read more >
Bug listing with status RESOLVED with resolution FIXED as at ...
... Bug:530 - "if $S directory is not available, ebuild should fail with apropriate error" status:RESOLVED resolution:FIXED severity:normal ...
Read more >
Bash Guide for Beginners - The Linux Documentation Project
The Bash shell is available on nearly every Linux system, and can these days ... unless the -f option has been set (see...
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