git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git remote-helpers and connectivity-ok

From
David Turner <novalis@novalis.org>
Date
Aug 27, 2019, 03:51 UTC
Message-ID
<7a13669281bef14b51d120815bc77fdbfa16afab.camel@novalis.org>

Quoth the git-remote-helpers man page: "If option check-connectivity is requested, the helper must output connectivity-ok if the clone is self-contained and connected."

I tried doing that in a helper, but I still got a connectivity check. Looking at the code, it looks like this only works if I supply a ".keep" file, and it only works for objects within the kept pack. If I want my helper to write more than one pack, I can't use this feature.

What I would expect, given the man page text, is that if connectivity- ok is output, the entire rev-list bit is skipped.

Is this a bug? Or is it working as intended, and the documentation is just unclear? Should there be an option for "I (the remote helper) know what I am doing, so please don't bother to check connectivity"?

Message 1 of 1 in “git remote-helpers and connectivity-ok”
  1. David TurnerAug 27, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.