Commit 84837d2
authored
fix: prune pool-maintenance reaps live unborn-branch upstream config — guard checked-out branches, exempt pool's own checkout (#33)
orbit_prune_repo_maintenance judged an orphan branch.<name>.* section by
ref existence alone (rev-parse refs/heads/<name>). An empty repo's
'orbit add' bootstraps an orphan worktree whose scoped branch is UNBORN —
registered in the worktree list, upstream config wired, but no ref — so
any untargeted prune's closing sweep reaped the live worktree's push
routing. First 'git push' after authoring the first commit then failed
128 ('has no upstream branch'), breaking scoped mode's
wired-up-front promise; git's own hint (-u origin ws/<ws>/main) would
publish the internal prefixed name, and the correct repair (hand-editing
branch.*) is one the skill forbids.
Signed-off-by: zheng-weihao <[email protected]>1 parent dbba0a0 commit 84837d2
3 files changed
Lines changed: 77 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2893 | 2893 | | |
2894 | 2894 | | |
2895 | 2895 | | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
2896 | 2901 | | |
2897 | 2902 | | |
2898 | 2903 | | |
2899 | 2904 | | |
2900 | 2905 | | |
2901 | 2906 | | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
2902 | 2915 | | |
| 2916 | + | |
| 2917 | + | |
2903 | 2918 | | |
2904 | 2919 | | |
2905 | 2920 | | |
2906 | 2921 | | |
| 2922 | + | |
2907 | 2923 | | |
2908 | | - | |
| 2924 | + | |
2909 | 2925 | | |
2910 | 2926 | | |
2911 | 2927 | | |
2912 | 2928 | | |
2913 | 2929 | | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
2914 | 2936 | | |
2915 | | - | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
2916 | 2940 | | |
2917 | 2941 | | |
2918 | 2942 | | |
2919 | 2943 | | |
2920 | 2944 | | |
2921 | 2945 | | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
2922 | 2949 | | |
2923 | 2950 | | |
2924 | 2951 | | |
2925 | 2952 | | |
2926 | 2953 | | |
2927 | 2954 | | |
2928 | 2955 | | |
2929 | | - | |
| 2956 | + | |
2930 | 2957 | | |
2931 | 2958 | | |
2932 | 2959 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
2065 | 2111 | | |
2066 | 2112 | | |
2067 | 2113 | | |
| |||
0 commit comments