login
Header Space

 
 

Re: git push bug?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Joakim Tjernlund <joakim.tjernlund@...>
Cc: Steffen Prohaska <prohaska@...>, git <git@...>
Date: Thursday, October 18, 2007 - 8:49 pm

Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:

Yes, but its only on the client side.

See when we do a push the local client side determines if the push is
going to be a fast-forward or not.  If it isn't then the git-push
client aborts before it even uploads data to the remote side.
The --force or + can be used to make the client side skip this
check and just plow forward anyway.

But the remote side can also veto a non-fast-forward update.  By
default it refuses to allow such updates as they can orphan commits
(and thus potentially lose important work).  See the config option
receive.denyNonFastForwards; you may want to set this to true in
the remote side's config file.

-- 
Shawn.
-
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:
git push bug?, Joakim Tjernlund, (Thu Oct 18, 10:50 am)
Re: git push bug?, Steffen Prohaska, (Thu Oct 18, 11:14 am)
Re: git push bug?, Shawn O. Pearce, (Thu Oct 18, 8:24 pm)
RE: git push bug?, Joakim Tjernlund, (Sat Oct 20, 1:38 pm)
Re: git push bug?, Joakim Tjernlund, (Thu Oct 18, 12:01 pm)
Re: git push bug?, Johannes Schindelin, (Thu Oct 18, 12:21 pm)
Re: git push bug?, Joakim Tjernlund, (Thu Oct 18, 12:31 pm)
Re: git push bug?, Johannes Schindelin, (Thu Oct 18, 6:00 pm)
Re: git push bug?, Joakim Tjernlund, (Fri Oct 19, 10:47 am)
Re: git push bug?, Johannes Schindelin, (Fri Oct 19, 1:24 pm)
RE: git push bug?, Joakim Tjernlund, (Fri Oct 19, 2:50 pm)
Re: git push bug?, Jan Hudec, (Sat Oct 20, 8:05 am)
RE: git push bug?, Johannes Schindelin, (Fri Oct 19, 6:46 pm)
Re: git push bug?, Steffen Prohaska, (Thu Oct 18, 12:55 pm)
Re: git push bug?, Johannes Schindelin, (Thu Oct 18, 5:58 pm)
Re: git push bug?, Steffen Prohaska, (Sat Oct 20, 4:29 am)
RE: git push bug?, Joakim Tjernlund, (Sat Oct 20, 7:52 am)
Re: git push bug?, Steffen Prohaska, (Sat Oct 20, 4:38 am)
Re: git push bug?, Joakim Tjernlund, (Thu Oct 18, 12:10 pm)
Re: git push bug?, Shawn O. Pearce, (Thu Oct 18, 8:49 pm)
Re: git push bug?, Steffen Prohaska, (Thu Oct 18, 12:13 pm)
speck-geostationary