grit://cooking/dogfood← what’s cooking
Wednesday, November 4, 2026 · macOS 15.7 (24G214), Darwin 24.6.0

Dogfood on scott-mbp: Remotes

5 repos · 25 commands · 3 broken · 2 slow · 5 filed

Dogfooded the Remotes scenario on scott-mbp: clone over https, file://, local path and grit serve (HTTP), push/fetch/pull (ff, divergent, conflict, force-with-lease, atomic, hooks, tags), multiple remotes and remote management, shallow/deepen/unshallow, partial clone, bare/single-branch clones, ls-remote and a 20k-ref repo. Core interop is solid (git fsck clean everywhere, repos round-trip with git, http/file transports comparable or faster than git), but current main does not compile (known #2528) and I filed 5 issues: remote refs hides non-heads/tags refs, no way to push all branches, pull+autostash on an unborn branch, 20k-ref clone slowness, and file:// --unshallow time/memory.

os
macOS 15.7 (24G214), Darwin 24.6.0 · arm64
machine
scott-mbp (agador): Apple M3, 24 GB RAM
versions
grit 0.5.0 on PATH (too old, not used); v0.5.28 latest release not built · main 8cb4162a · 2.52.0
repositories5
repofilescommits.gitnotes
octocat/Hello-World131 MB
rust-lang/cargo3,07823,62487 MB218 refs after clone; 9961 refs advertised incl. 9635 refs/pull
git/git4,86382,676338 MB
scratch/s1 (bare origin + clones)10101 MBlocal bare repos, two remotes, tags, feat branches
scratch/mr (20k branches)14182 MBbare repo with 20,003 branches, packed-refs
commandsgrit vs. system git, wall time
commandrepogritgitgrit/gitresultnotes
grit clone https://github.com/octocat/Hello-Worldoctocat/Hello-World927 ms700 ms1.3×oknetwork handshake dominated
grit clone https://github.com/rust-lang/cargorust-lang/cargo19.73 s33.15 s0.6×oknetwork bound
grit clone https://github.com/git/gitgit/git132.47 s91.24 s1.5×oknetwork bound (grit 10 s user); maxrss includes mmap'd pack, footprint 75 MB; run again 142 s
grit clone file:///.../cargo-gitrust-lang/cargo2.20 s2.85 s0.8×ok2x RSS, below filing threshold alone; faster than git
grit clone --depth 1 file:// (cargo)rust-lang/cargo490 ms470 ms1.0×ok
grit fetch --depth 5 (shallow)rust-lang/cargo20 ms40 ms0.5×ok
grit fetch --unshallow (file://)rust-lang/cargo5.72 s4.61 s1.2×memoryfiled #2537
grit fetch --unshallow (https)rust-lang/cargo11.52 s16.91 s0.7×okGitHub timing varies wildly between runs (git 17 s then 47 s)
grit clone (grit serve http)rust-lang/cargo1.41 s3.77 s0.4×ok
grit clone --depth 1 (grit serve http)rust-lang/cargo510 ms600 ms0.8×ok
grit fetch --deepen 10 (grit serve http)rust-lang/cargo290 ms360 ms0.8×ok
grit fetch --unshallow (grit serve http)rust-lang/cargo2.43 s5.90 s0.4×ok
grit clone --blobs none (file://)rust-lang/cargo2.70 s2.14 s1.3×ok31 MB .git, same as git; lazy show/diff fetch OK; warns when server has no filter support
grit clone /local/pathrust-lang/cargo230 ms330 ms0.7×ok
grit remote refs https://github.com/rust-lang/cargorust-lang/cargo605 ms678 ms0.9×wrong326 lines vs git 9961; filed #2533
grit remote refs <20k-branch repo>scratch/mr (20k branches)11 ms31 ms0.4×ok
grit clone file:// (20k branches)scratch/mr (20k branches)536 ms117 ms4.6×slow4.6x; filed #2536
grit fetch (no-op, 20k refs)scratch/mr (20k branches)67 ms192 ms0.3×ok
grit push (1 branch to local bare, ff/non-ff/force/lease/atomic/delete/tags/follow-tags)scratch/s1 (bare origin + clones)———okexit codes and remote state match git; --json ok
grit push nb 'refs/heads/*:refs/heads/*'scratch/s1 (bare origin + clones)———errorglob refspec rejected, no --all/--mirror; filed #2534
grit pull / pull --ff-only / conflict + rebase --continuescratch/s1 (bare origin + clones)———ok
grit pull --autostash o main (unborn branch)scratch/s1 (bare origin + clones)———error'cannot stash without a commit'; filed #2535
grit fetch / fetch --all / remote add|rename|set-url|show / --json / --markdownscratch/s1 (bare origin + clones)———ok
grit clone --bare / -b <tag> / --single-branch -bscratch/s1 (bare origin + clones)———okbare clone also creates refs/remotes/origin/* (git does not); not filed, see problems
grit clone/push/pull over grit serve HTTP with tokenscratch/s1 (bare origin + clones)———okinteroperates with git client both ways
worked8
  • ›Clone, fetch, pull, push over https, file://, local path and grit serve HTTP produce repos that git fsck accepts, with the same refs and objects as git
  • ›Push rejection, force-with-lease (stale vs fresh), --force, --atomic, --delete, pre-push hook, denyCurrentBranch all behave like git; messages are clear and --json output is consistent
  • ›Annotated tags stay annotated on push --tags/--follow-tags (#2366 fixed)
  • ›Shallow clone, --deepen and --unshallow give the same commit counts and shallow state as git
  • ›Partial clone (--blobs none) gives the same 31 MB .git as git and lazily fetches blobs for show/diff
  • ›Pull conflict flow stops with markers and a clear next step; rebase --continue then push works
  • ›grit serve + token auth: HTTP clone is 2.7x faster than git thanks to clone bundles; pushes/pulls interop with git
  • ›20k-ref repo: remote refs 11 ms vs 31 ms git, no-op fetch 66 ms vs 192 ms
problems12
  • ›Current main (8cb4162ac, v0.5.29) does not compile: stash.rs uses undefined `stored` - existing #2528; I applied the triage's suggested fix locally in my scratch clone to test
  • ›remote refs hides refs outside heads/tags and ignores explicit prefixes there - filed #2533
  • ›push cannot push all branches: CLI glob refspec rejected, no --all/--mirror - filed #2534
  • ›pull with autostash on an unborn branch fails 'cannot stash without a commit'; unrelated-histories pull error is obscure - filed #2535
  • ›20k-branch clone 4.6x slower than git: per-ref object existence check - filed #2536
  • ›fetch --unshallow over file:// 23% slower, 2.6x RSS - filed #2537
  • ›Not filed: `grit push nope` (typo'd remote name) says 'src refspec nope does not match any ref' instead of unknown remote - too minor
  • ›Not filed: `grit clone --bare` also writes refs/remotes/origin/* and a later `grit fetch` updates those but never refs/heads (git writes none); no --mirror to keep heads in sync - design question, minor
  • ›Not filed: `grit pull --ff-only` failure prints fetch statistics before the error message - cosmetic
  • ›Not filed: macOS maxrss for clone/fetch (git/git 457 MB vs 120 MB) inflated by mmap'd pack pages; footprint 75 MB. Comparison with git's child-process footprint isn't possible with /usr/bin/time -l
  • ›Not filed: https clone/fetch timings vary 2-4x between runs on GitHub's side, so no conclusion drawn
  • ›Remote URL with embedded token is shown in cleartext by `grit remote -v` and config - existing #2151
bugs filed5
#2533 #2534 #2535 #2536 #2537already reported: #2528 #2151
next time
  • ›Build and retest after #2528 is fixed; compare against v0.5.28 release
  • ›SSH remotes (known issues #2338, #2340) and credential helper / grit auth flows against github.com with a real token
  • ›push of a large new branch over https/ssh to a real server (pack build cost on git/git), and push with 100k+ loose objects
  • ›fetch of many new refs with fetch.prune and tag clobbering between two remotes; pull --rebase with autostash on a dirty tree
  • ›git bundle/clone from bundle URIs, submodule-containing repos (git/git has one gitlink), LFS repos
  • ›Concurrent fetch/push from two processes into the same repo (lock handling), Windows/Linux comparisons of ref-count scaling