git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git push over http is very dangerous
@ 2007-04-16 15:22 Christian
  2007-04-16 19:38 ` Linus Torvalds
  2007-04-21  1:03 ` Junio C Hamano
  0 siblings, 2 replies; 9+ messages in thread
From: Christian @ 2007-04-16 15:22 UTC (permalink / raw)
  To: git

Hi Git developers,

first of all thanks for the great toolkit :)

We are using git for the mISDN Open Source ISDN Stack (www.misdn.org / 
git.misdn.org).  We are using webdav to push up data from users with 
write access. Readonly access is granted via the git daemon.

We have moved from CVS to git in the beginning of last week, all went 
well until this weekend. This weekend one developer wanted to push some 
of his local modifications, unfortunately during the push his http 
connection seemed to have broken or so. Unfortunately git does not prove 
if the push went well. Therefore our repository was broken this morning.

We found out that it was broken, because we could not do a pull or clone 
from the central repository anymore, but we got an error message.

Then i did a "git log" which worked well. then i wanted to "show" the 
last 2 commits, so i did: "git show":

error: corrupt loose object 'cd1aac1a43cfdac07118240f75c0ba7662eb8140'
<crich1999> error: cd1aac1a43cfdac07118240f75c0ba7662eb8140: object 
corrupt or missing


i found that i could "git show" all commits, but only the last 2 
produced the above error message.

gitster from IRC helped me out and showed me that i could do

git branch -f master master~2 

to remove the 2 commits. i did that and all worked well again!


I wonder if it would be possible to delay a central push until all data 
was uploaded, then after the upload finished a checksum is transmitted, 
if the checksum is correct, the push can be done centrally..


cheers,

christian

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-04-22  7:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-16 15:22 git push over http is very dangerous Christian
2007-04-16 19:38 ` Linus Torvalds
2007-04-16 19:55   ` Junio C Hamano
2007-04-16 20:20     ` Linus Torvalds
2007-04-20 18:37     ` Christian
2007-04-21  1:03 ` Junio C Hamano
2007-04-21 17:07   ` Christian
2007-04-21 18:28     ` Junio C Hamano
2007-04-22  7:21       ` Christian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).