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.

update cleaning up old git.exe when it shouldn't

See original GitHub issue

Description

@NickCraver reported on Twitter that he encountered this Git error, which is a generic and questionable message when we can’t resolve the packaged Git:

However after this he hasn’t been able to launch Desktop at all. No errors, no logs, just silence.

Version

GitHub Desktop version: 0.7.0 -> 0.7.2 OS version: Windows 10 I guess

Steps to Reproduce

TBC, seems to be something like this:

  • Open app running 0.7.0
  • Update app to 0.7.x (latest version) (in background? or manually?)
  • Leave app open, keep doing Git things
  • 💥

Expected behavior: The current version’s bits are still on disk until the app is closed, and cleaned up In The Future™

Actual behavior: Files related to the running app were cleaned up, and now the app doesn’t launch. Not sure if these are related, let’s assume so.

Reproduces how often: lol I have no idea

Logs

SquirrelSetup.log is interesting:

setup

It excluded 0.7.1 and 0.7.2 when cleaning up old versions, but not the running 0.7.0 version. Could this be related to us rolling out delta updates? Full log is here

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
shiftkeycommented, Aug 1, 2017

The downside is that we have a messed up updated that goes out, they now have to do the download + restart cycle twice.

I’m okay with this. Looking at the stats reported, the majority of people are still on 0.7.0.

But that’s worth it IMO to avoid breaking the app out from under users.

Yep, I’d rather an app that can be left running for days/weeks without trouble because Stuff Just Works™.

1reaction
NickCravercommented, Jul 31, 2017

Open since at least last night, probably a few days at least…been working on Exceptional. It’s in a Parallels VM so it’d have paused during MacBook sleep over night, but up since this morning at ~6am EST.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to upgrade Git on Windows to the latest version
If the new version downloads but doesn't run the installer, try running the Windows Command Prompt "as administrator." Once I did that update- ......
Read more >
git-clean Documentation - Git
DESCRIPTION. Cleans the working tree by recursively removing files that are not under version control, starting from the current directory. Normally, only ...
Read more >
How to clean up the git repo and reduce its disk size - Git Better
The above command will remove all refs and inaccessible commits in the repo which are older than two weeks. —aggressive will help more...
Read more >
How to completely remove a file from a Git repository | iText PDF
The goal is to completely wipe a file out of existence in a Git repository, to cover all tracks of your horrible mistake....
Read more >
Automating Disk Cleanup tool - Windows Server
Introduces how to run the Disk Cleanup tool (cleanmgr.exe) by using command-line switches.
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