#1595·ungit

Timeout Issues with `ls-remote --tags origin` Commands in Ungit 1.5.26

Author: belb-deCreated Jun 17, 2024Updated Jun 17, 2024

Hi,

I'm experiencing an issue with Ungit version 1.5.26 where specific Git commands are timing out and causing the interface not to refresh. The affected commands are related to fetching tags from the remote. Below are the details and logs:

Environment:

  • Ungit Version: 1.5.26
  • Git Version: 2.39.2
  • Operating System: Debian 12
  • Node.js Version: 20.11.0

Issue: Commands to fetch remote tags are timing out, preventing the UI from refreshing. This occurs consistently with the ls-remote --tags origin command. Here are the log entries showing the timeouts:

2024-06-14T14:47:21.973Z - info: GET /api/quickstatus?path=%2Fhome%2Fdebian%2Fznai&socketId=1
2024-06-14T14:47:45.145Z - warn: command timedout: -c color.ui=false -c core.quotepath=false -c core.pager=cat -c core.editor=: -c credential.helper=/home/debian/.nvm/versions/node/v20.11.0/lib/node_modules/ungit/bin/credentials-helper 1 8450 origin ls-remote --tags origin
2024-06-14T14:47:52.587Z - warn: command timedout: -c color.ui=false -c core.quotepath=false -c core.pager=cat -c core.editor=: -c credential.helper=/home/debian/.nvm/versions/node/v20.11.0/lib/node_modules/ungit/bin/credentials-helper 1 8450 origin ls-remote --tags origin

Attempted Solutions:

  • Checked network connectivity and stability.
  • Increased the gitCommandTimeout in .ungitrc.
  • Updated both Ungit and Git to the latest versions.

None of these steps have resolved the issue.

Questions:

  1. Is there a known issue with Ungit handling ls-remote --tags commands in certain environments?
  2. Are there recommended settings or configurations to prevent these timeouts?
  3. Any other troubleshooting steps or diagnostics tools recommended to further investigate this problem?

Thank you for any insights or suggestions you can provide!