Git object storage and pack files for Eio
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(monopam): detect repos with no upstream tracking branch

ahead_behind in ocaml-git returned {ahead=0; behind=0} when the remote
ref didn't exist, making never-pushed repos appear fully synced. Now
returns None, and status shows these as "remote:new" so push correctly
identifies them as needing upstream push.

+1 -1
+1 -1
lib/repository.ml
··· 998 998 | Some local_head -> ( 999 999 let remote_ref = "refs/remotes/" ^ remote ^ "/" ^ branch in 1000 1000 match read_ref t remote_ref with 1001 - | None -> Some { ahead = 0; behind = 0 } 1001 + | None -> None 1002 1002 | Some remote_head -> 1003 1003 if Hash.equal local_head remote_head then 1004 1004 Some { ahead = 0; behind = 0 }