Deleting the "current" branch in a remote repository
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 13 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | builtin-receive-pack.c: do not initialize statics to 0builtin-receive-pack.c | +2 | 0 replies | |
| 2/6 | t5400: allow individual tests to failt/ | +24 | 4 replies | |
| 3/6 | receive-pack: receive.denyDeleteCurrentbuiltin-receive-pack.c t/ | +68 | 5 replies | |
| 4/6 | remote prune: warn dangling symrefsbuiltin-remote.c refs.c refs.h | +65 | 4 replies | |
| 5/6 | Warn use of "origin" when remotes/origin/HEAD is danglingsha1_name.c | +4 | 0 replies | |
| 6/6 | receive-pack: default receive.denyDeleteCurrent to refusebuiltin-receive-pack.c t/ | +13 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] Deleting the "current" branch in a remote repository
The first two are preparatory clean-up and bugfix patches.
The third one introduces receive.denyDeleteCurrent configuration that defaults to "annoyingly loud warning", which we will flip to "refusal with insn" at the end.
The fourth and fifth one are not about push and are more or less independent. They deal with what happens when you ended up with a dangling symbolic ref in a tracking hierarchy. I think a check and warning similar to the fourth one may be needed in git-push (and git-send-pack) when it pushes a void to remove a branch from a remote, and in turn removes the corresponding tracking branch at the local end.
Then finally the last one flips the default for receive.denyDeleteCurrent to refuse.
I think the first five ought to be in 1.6.2-rc1 but I lack the energy and time to finish the testing, re-eyeballing and documentation tonight. It would be very nice to see friends from other timezones to help me with these tasks ;-)
Junio C Hamano (6):
builtin-receive-pack.c: do not initialize statics to 0
t5400: allow individual tests to fail
receive-pack: receive.denyDeleteCurrent
remote prune: warn dangling symrefs
Warn use of "origin" when remotes/origin/HEAD is dangling
receive-pack: default receive.denyDeleteCurrent to refuse
builtin-receive-pack.c | 70 ++++++++++++++++++++++++++++++++++++++-------- builtin-remote.c | 6 ++++ refs.c | 72 ++++++++++++++++++++++++++++++++++++------------ refs.h | 5 +++ sha1_name.c | 6 ++- t/t5400-send-pack.sh | 44 ++++++++++++++++++++-------- 6 files changed, 157 insertions(+), 46 deletions(-)