[Scummvm-devel] git force-push

Bertrand Augereau bertrand_augereau at yahoo.fr
Tue Mar 1 11:15:12 CET 2011


Hello guys,A very important precaution when you intend to do a force-update is to block pushes on the repository, then refetch.If you don't you can destroy commits that are pushed during the time you fix the problem.
A good way of blocking pushes is the update hook for instance.Cheers,Bertrand
--- En date de : Lun 28.2.11, Filippos Karapetis <bluegr at gmail.com> a écrit :

De: Filippos Karapetis <bluegr at gmail.com>
Objet: Re: [Scummvm-devel] git force-push
À: scummvm-devel at lists.sourceforge.net
Date: Lundi 28 février 2011, 23h16

IMHO, this was a very good reason for a force push, as the tree history was messed severely(i.e. there were three sets of the same commits, as the same changes were rebased. Asyou said "this was a rebase of remote/master on top of master, followed by a merge of
master and remote/master". The result wasn't pretty :/ Thus, this was one of the caseswhere fixing history like that was a good thing (and a lot of people on IRC agreed on this, too).

In any case, since I was one of the people affected by this: one solution to fix your localtree if you got these odd commits is to perform a hard reset of master before the oddnesshappened, and then do a force fetch and rebase.

RegardsFilippos

On Mon, Feb 28, 2011 at 10:36 PM, Willem Jan Palenstijn <wjp at usecode.org> wrote:

Hi all,



I hope this won't happen often, but I just did a force-push of master from

0f7dcac15591c4ea3def6ff16bb8cf0d6321809c back to

3550e1056884995a524db51fab56d0097c5b6398 to undo a broken merge after quick

deliberation on IRC. The merge merged a rebased copy of master with master,

duplicating 7 commits. The removed commit was up for 8 minutes, so hopefully

not many people were affected other than those involved on IRC.



If you run into trouble because of this, please let me know and we can figure

out what to do to fix it.





Any discussion on if this was an appropriate use of a force-push is welcome...





-Willem Jan



------------------------------------------------------------------------------

Free Software Download: Index, Search & Analyze Logs and other IT data in

Real-Time with Splunk. Collect, index and harness all the fast moving IT data

generated by your applications, servers and devices whether physical, virtual

or in the cloud. Deliver compliance at lower cost and gain new business

insights. http://p.sf.net/sfu/splunk-dev2dev

_______________________________________________

Scummvm-devel mailing list

Scummvm-devel at lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/scummvm-devel




-- 
"Experience is the name every one gives to their mistakes" - Oscar Wilde 



-----La pièce jointe associée suit-----

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
-----La pièce jointe associée suit-----

_______________________________________________
Scummvm-devel mailing list
Scummvm-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scummvm-devel



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20110301/addbc286/attachment.html>


More information about the Scummvm-devel mailing list