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.

Commits take a very long time to complete

See original GitHub issue

Describe the bug

Commits take a very long time to complete compared to using CLI.

I looked at the logs to understand what’s happening after committing via the UI, and here is what I see:

2021-07-23T17:20:57.980Z - info: [ui] [AppStore] loading 16 repositories from store
2021-07-23T17:20:58.174Z - info: [ui] launching: 2.8.1-linux1 (Linux 5.11.0-7620-generic)
2021-07-23T17:20:58.174Z - info: [ui] execPath: '/usr/lib/github-desktop/github-desktop'
2021-07-23T17:21:38.762Z - info: [ui] Executing updateIndex: git update-index --add --remove --replace -z --stdin (took 35.509s)
2021-07-23T17:21:38.935Z - info: [ui] [Timing] Action 'create commit' for 'stargazer' took 35.715s

Something called updateIndex took 35 seconds to complete before the app even attempted to commit.

Version & OS

Version 2.8.1-linux1

OS: Pop_OS! 21.04

Linux carbon 5.11.0-7620-generic #21~1624379747~21.04~3abeff8-Ubuntu SMP Wed Jun 23 02:34:03 UTC  x86_64 x86_64 x86_64 GNU/Linux

Steps to reproduce the behavior

  1. Go to ‘main UI’
  2. Click on ‘Commit’ (can even be a single, small file)

Though I expect that there is something at play that only affects certain setups or projects.

Expected behavior

A commit not taking longer than on the CLI.

Actual behavior

A commit taking 35 seconds instead of at most a second on the CLI.

Logs

See description.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Mrlinkwiicommented, Jul 25, 2021

👋 linux isn’t offically supported ( as per https://github.com/desktop/desktop/issues/1525#issuecomment-783584346 ) but theirs a linux fork you can use https://github.com/shiftkey/desktop/ to post said issue their if its still occuring also the version your using is old id recommend updating to the latest version also

0reactions
no-response[bot]commented, Aug 3, 2021

Thank you for your issue! We haven’t gotten a response to our questions above. With only the information that is currently in the issue, we don’t have enough information to take action. We’re going to close this but don’t hesitate to reach out if you have or find the answers we need. If you answer our questions above, a maintainer will reopen this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git commit takes a really long time on a specific repo #2518
GitHub desktop either takes a really long time (5 minutes or more) to commit, but only on a specific repository.
Read more >
Git commit is taking a long time - Stack Overflow
Press Control-C. Look at your commit message. Does it include " or ' or some other special character? If so, take it out...
Read more >
What should I do when I've already waited too long between ...
To answer, you have to ask yourself how you expect to use the results of these commits in the future. The most common...
Read more >
"Git commit" takes a very long time (> 40 seconds) to open vim ...
When I run vim on its own, everything works as expected. Yet when I run git commit , which launches vim, it takes...
Read more >
Why is git add and git commit taking so long? - Quora
Expected behavior: commit in the usual timeframe, usually under 10 seconds, even for large commits. Actual behavior: commit takes 5 minutes or more....
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