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.

Committing after latest update (2.5.7) results in cryptic error from embedded git

See original GitHub issue

Describe the bug

After updating to version 2.5.7, when committing a change, the embedded git throws a cryptic looking error (screenshot below).

When removing the unprintable characters, it reads:

Windows Subsystem for Linux has no installed distributions.


Distributions can be installed by visiting the Microsoft Store:


https://aka.ms/wslstore

Version & OS

Github Desktop 2.5.7 Windows 10 Pro version 2004 (No WSL)

Steps to reproduce the behavior

  1. Attempt to commit a change

Expected behavior

Change is committed

Actual behavior

Error is thrown by embedded git, which bubbles up to error modal (see logs & screenshot).

Screenshots

image

Logs

Logs are attached (with personal info redacted) showing the actual output of the message:

2020-11-12.desktop.production_redacted.log

Additional context

After stepping through the code using the developer tools (in Github Desktop), I discovered that the env var LOCAL_GIT_DIRECTORY can be used to bypass the embedded git. After setting it to the directory of a local git bash installation I was able to commit without an issue.

Fetching/pulling seems fine, even with embedded git (not sure about pushing), but committing fails 100% of the time now (unless the env var mentioned above is set).

I had no issue prior to version 2.5.7.

EDIT: See this comment for the latest information; it appears to be a local PATH issue (unsurprisingly).

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
stevewardcommented, Nov 12, 2020

@aphix thanks for sharing your debugging steps! I’m glad to hear you were able to get things resolved.

1reaction
aphixcommented, Nov 12, 2020

Ah! The plot thickens – so tried a few different local repos to make sure it happened in all cases, but I got one to work, and it appears the difference is that I have a pre-commit hook (which was working previously with the app, passing any errors as expected in the modal).

Interestingly, using the #!/bin/bash shebang results in the error above (again, was working before), whereas using #!/bin/sh appears to be working as expected (the message echoed from the script is in the error modal.

Screenshots:

using #!/bin/sh image

using #!/bin/bash image

Follow up: This occurs with an empty script (using bash shebang), so it’s not an exit code thing: image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 7 - Update Embedded Git Fails 'Unable to extract'
On an interesting side-note, the error message I see is that it failed to extract "lib\tcl8.5\tzdata\Africa\Abidja" (not "Abidjan", as shown in D K's...
Read more >
How can I fix these errors using Husky with SourceTree on ...
I'm using nvm to manage node versions. The error Can't find node in PATH husky > pre-commit hook failed is reported when SourceTree...
Read more >
Changes in rpy2 — rpy2 3.5.4 documentation
Latest release for R package rlang broke import through importr() . A workaround for rpy2.robjects.lib.ggplot2 is to rename the offending R object (issue...
Read more >
過去的公告 - GnuCash
Ammend last commit German translation Patch other translations Update pt for ... resulted in the following errors, ERR_BACKEND_LOCKED This is less cryptic ......
Read more >
NEWS - third_party/glib - Git at Google
!575 gio: Update bad cert error in accept-certificate and GTlsError docs ... #1119 GVolumeMonitor: Results don't reflect current state but state when ...
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