Re: Some updates to refspec documentation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Wednesday, October 29, 2008 - 4:41 pm

During my struggle, I also found a git push usability problem. The
refspec ":dst" will delete the remote branch without warning.

While this is indeed documented, you cannot blame somebody for
thinking that a left out <src> will default to HEAD, as it does for so
many other commands.

In a CVS-like setup, with everybody pushing to master, this could
cause havoc.

As the "git push <repository> :<dst>" operation is destructive, I
think it should be protected by the -f option.

For the record, I did realize this before trying to push ":master" :-).



Anders.
--
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:
Some updates to refspec documentation, Anders Melchiorsen, (Wed Oct 29, 4:25 pm)
Re: Some updates to refspec documentation, Anders Melchiorsen, (Wed Oct 29, 4:41 pm)
Re: Some updates to refspec documentation, Anders Melchiorsen, (Wed Oct 29, 4:44 pm)
[PATCH 1/7] Documentation: do not use regexp in refspec desc..., Anders Melchiorsen, (Wed Oct 29, 4:25 pm)
[PATCH 2/7] Documentation: git push repository can also be a..., Anders Melchiorsen, (Wed Oct 29, 4:25 pm)
[PATCH 3/7] Documentation: rework SHA1 description in git push, Anders Melchiorsen, (Wed Oct 29, 4:25 pm)