{"thread":{"id":"62536","subject":"[bug] user may be cornered into delete files #9901","startedAt":"2024-11-24T23:47:57Z","lastAt":"2024-11-24T23:47:57Z","messageCount":1,"participants":["A bughunter"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"507995","messageId":"S5PSH8NN2iTlSlWbEi3lixncKj_ShJU5Cpvselj_d-WnTJvq8YCT65k1VR7dB8m0FRTj0nyQ-eXx6W8LlSeN0OnzoK8KxCkCP3OK46LRN8w=@proton.me","threadId":"62536","inReplyTo":null,"subject":"[bug] user may be cornered into delete files #9901","fromName":"A bughunter","fromEmail":"a_bughunter@proton.me","sentAt":"2024-11-24T23:47:43Z","receivedAt":"2024-11-24T23:47:57Z","isPatch":false,"sender":{"key":"a_bughunter@proton.me","avatar":null},"body":"-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA512\n\n\n\nNEEDS TESTING [bug] user may be cornered into delete files #9901\n\nLook wheather you call it a \"landmine\" or \"bug\" this is a defect in the software application git.\n\nThe defect is: user may be cornered into having to delete files.\n\nSteps to reproduce: if for any reason the push fails during the intial creation and upload of files to a git repository then the user is left with three options reset modes soft, mixed, and hard. Because GitHub hangs up during the compression of many files being pushed these files must be pushed 1 by 1. If the user wants to repush the files the user must be able to undo the tracked files and repush them 1 by 1. Hard is immediatly excluded because it deletes files. Mixed likely deletes files also because it wipes the index of the CWD after the files have been 'add'. While soft may not delete the files it would not wipe the index, the index is needed to be wiped to allow for the files to be re add, commit, and pushed. \n\nI am working from an android so it is hard to setup computer lab tests. Somebody should be able to setup experimental git repos to reproduce and CONFIRM the bug. You will be looking to CONFIRM that neither modes soft or mixed will allow the user to undo tracked files for repush. \n\nWhat I did was copy the files out to be safe and a soft reset and I workaround the problem but the user should not need to copy anf make backups of files because this is the intended afvantage anf purpose of git. Because I did a workaround the bugreport still need's to be tested and CONFIRMED. \n\nfrom A_bughunter@proton.me\n\nSent with Proton Mail secure email.\n-----BEGIN PGP SIGNATURE-----\nVersion: ProtonMail\n\nwnUEARYKACcFgmdDuxwJkKkWZTlQrvKZFiEEZlQIBcAycZ2lO9z2qRZlOVCu\n8pkAAFO6AP918fCRKPBij1LgVOttJepAslX9VqSfrhjT3VnygJAfpgEA34dE\nIWoJx9beK7zLk6NlDc+0iU7DEXcaSxK86atsXAQ=\n=u2Tz\n-----END PGP SIGNATURE-----\n"}]}