Minor annoyance with git push

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Git Mailing List <git@...>
Date: Friday, February 8, 2008 - 12:44 am

I have a minor UI issue with git pull. First, a bit of background: we
run a "central team repo" development model -- and we track on one
repo the "main" branches, and the client branches, where we do minor
customisations and sometimes client-funded feature work that is later
cherry-picked for the "main" branches. This is with a team of ~10
people, and lots of clients.

(To clarify: some clients are in specialised private repositories.
Most are happy and actually request that our work should be public.)

As we run a central repo, we all get *all* the branches when we do
fetch. A bit noisy, but no major issue. It is also a great thing as we
get asked to help in various branches, so I'll often hop on a client
branch that is mainly maintained by someone else, just to fix or
enhance something on the authentication (which I specialise in). After
that, I don't have much to do with that client branch.

This means that beyond the branches I actively work on, I also have
local tracking branches for remote heads that I am not updating. When
I say git push, these stale local tracking branches are making a lot
of noise in the output:

To git+ssh://git.catalyst.net.nz/var/git/moodle-r2.git
 ! [rejected]        mdl17-ceo -> mdl17-ceo (non-fast forward)
 ! [rejected]        mdl18-local -> mdl18-local (non-fast forward)
 ! [rejected]        mdl18-masseyedu-wimbatest ->
mdl18-masseyedu-wimbatest (non-fast forward)
 ! [rejected]        mdl18-nmit -> mdl18-nmit (non-fast forward)
 ! [rejected]        mdl18-proxy -> mdl18-proxy (non-fast forward)
 ! [rejected]        mdl18-shared -> mdl18-shared (non-fast forward)
 ! [rejected]        mdl18-sqm -> mdl18-sqm (non-fast forward)
 ! [rejected]        mdl18-stcuthberts -> mdl18-stcuthberts (non-fast forward)
 ! [rejected]        mdl18-topnz -> mdl18-topnz (non-fast forward)
 ! [rejected]        mdl19-dbperf -> mdl19-dbperf (non-fast forward)
 ! [rejected]        mdl19-ucol -> mdl19-ucol (non-fast forward)
 ! [rejected]        mdl19-uow -> mdl19-uow (non-fast forward)
error: failed to push to 'git+ssh://git.catalyst.net.nz/var/git/moodle-r2.git'

The error messages ("! rejected", "error: failed to push") appear even
if one or two branches did get pushed... I think they are a bit over
the top. None of these "rejected" branches have anything _new_, they
are just stale. Nothing new to say. Can we just ignore them, and only
say "ZOMG Failure! Rejected!!1!!" if we fail to push *new* local
commits that aren't in the repo (leading to an assumption that if the
user said "push" he'd expect those new local commits to be pushed to
the server)?

[ Personally, it doesn't bother me too much. But I can see some
newcomers to my team, and their eyes twitch when they see all the
exclamation marks. I've learned to look for the branch I care about
being pushed in the output, but it's particularly not user friendly as
it stands. ]

cheers,



m
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Minor annoyance with git push, Martin Langhoff, (Fri Feb 8, 12:44 am)
Re: Minor annoyance with git push, Jeff King, (Fri Feb 8, 11:00 pm)
Re: Minor annoyance with git push, Steffen Prohaska, (Sat Feb 9, 6:53 am)
Re: Minor annoyance with git push, Johannes Schindelin, (Sat Feb 9, 9:10 am)
Re: Minor annoyance with git push, Junio C Hamano, (Sat Feb 9, 10:07 pm)
Re: Minor annoyance with git push, Johannes Schindelin, (Sat Feb 9, 10:15 pm)
Re: Minor annoyance with git push, Wincent Colaiuta, (Sun Feb 10, 10:03 am)
Re: Minor annoyance with git push, Johannes Schindelin, (Sun Feb 10, 12:26 pm)
Re: Minor annoyance with git push, Wincent Colaiuta, (Sun Feb 10, 2:18 pm)
Re: Minor annoyance with git push, Jeff King, (Sun Feb 10, 6:34 pm)
Re: Minor annoyance with git push, Junio C Hamano, (Sun Feb 10, 6:59 pm)
Re: Minor annoyance with git push, Jeff King, (Sun Feb 10, 7:29 pm)
Re: Minor annoyance with git push, Steven Walter, (Sun Feb 10, 11:02 am)
Re: Minor annoyance with git push, Johannes Schindelin, (Sun Feb 10, 12:29 pm)
Re: Minor annoyance with git push, Jeff King, (Sun Feb 10, 6:17 am)
Re: Minor annoyance with git push, Johannes Schindelin, (Sun Feb 10, 8:20 am)
Re: Minor annoyance with git push, Jeff King, (Sun Feb 10, 8:23 am)
Re: Minor annoyance with git push, Johannes Schindelin, (Sun Feb 10, 9:04 am)
Re: Minor annoyance with git push, Junio C Hamano, (Wed Feb 20, 4:23 am)
Re: Minor annoyance with git push, Jeff King, (Wed Feb 20, 10:03 am)
Re: Minor annoyance with git push, Johannes Schindelin, (Wed Feb 20, 9:06 am)
Re: Minor annoyance with git push, Jay Soffian, (Wed Feb 20, 11:20 am)
Re: Minor annoyance with git push, Johannes Schindelin, (Wed Feb 20, 11:38 am)
Re: Minor annoyance with git push, Steven Walter, (Thu Feb 21, 6:35 pm)
Re: Minor annoyance with git push, Johannes Schindelin, (Thu Feb 21, 8:11 pm)
Re: Minor annoyance with git push, Jeff King, (Sun Feb 10, 9:07 am)
Re: Minor annoyance with git push, Junio C Hamano, (Fri Feb 8, 11:24 pm)
Re: Minor annoyance with git push, Martin Langhoff, (Sat Feb 9, 7:50 am)
Re: Minor annoyance with git push, Junio C Hamano, (Sat Feb 9, 10:24 pm)
[PATCH] checkout: updates to tracking report, Junio C Hamano, (Wed Feb 20, 11:42 pm)
Re: [PATCH] checkout: updates to tracking report, Daniel Barkalow, (Thu Feb 21, 1:02 pm)
Re: [PATCH] checkout: updates to tracking report, Jay Soffian, (Thu Feb 21, 1:27 am)
Re: Minor annoyance with git push, Jeff King, (Sun Feb 10, 6:13 am)
Re: Minor annoyance with git push, Johannes Schindelin, (Sun Feb 10, 8:22 am)
Re: Minor annoyance with git push, Johannes Schindelin, (Sat Feb 9, 9:06 am)
Re: Minor annoyance with git push, Jeff King, (Fri Feb 8, 11:55 pm)
Re: Minor annoyance with git push, Sean, (Fri Feb 8, 1:38 am)
Re: Minor annoyance with git push, Steffen Prohaska, (Fri Feb 8, 2:29 am)
Re: Minor annoyance with git push, Johannes Schindelin, (Fri Feb 8, 7:50 am)
Re: Minor annoyance with git push, Martin Langhoff, (Fri Feb 8, 6:27 pm)
Re: Minor annoyance with git push, Jeff King, (Fri Feb 8, 10:46 pm)
Re: Minor annoyance with git push, Steffen Prohaska, (Sat Feb 9, 7:22 am)
Re: Minor annoyance with git push, Jeff King, (Fri Feb 8, 10:54 pm)
Re: Minor annoyance with git push, Johannes Schindelin, (Sat Feb 9, 9:04 am)
Re: Minor annoyance with git push, Jeff King, (Sat Feb 9, 9:22 am)
Re: Minor annoyance with git push, Johannes Schindelin, (Fri Feb 8, 6:57 pm)
Re: Minor annoyance with git push, Martin Langhoff, (Fri Feb 8, 12:50 am)
Re: Minor annoyance with git push, Johannes Schindelin, (Fri Feb 8, 7:52 am)
Re: Minor annoyance with git push, Martin Langhoff, (Fri Feb 8, 6:23 pm)
Re: Minor annoyance with git push, Mike Hommey, (Fri Feb 8, 6:27 pm)
Re: Minor annoyance with git push, Junio C Hamano, (Fri Feb 8, 3:48 am)
Re: Minor annoyance with git push, Steffen Prohaska, (Sat Feb 9, 7:22 am)
Re: Minor annoyance with git push, Junio C Hamano, (Sat Feb 9, 11:44 pm)
Re: Minor annoyance with git push, Johannes Schindelin, (Sun Feb 10, 8:21 am)