commitment icon indicating copy to clipboard operation
commitment copied to clipboard

I got owned by this repo

Open GoldenStack opened this issue 1 year ago • 8 comments

I needed to autogenerate some commits for a joke project and I ended up running this command about 30,000 times:

request = urllib.request.urlopen('https://whatthecommit.com/index.txt').read().decode('utf-8')
message = request.rstrip().replace("\"", "'")
os.system(f"git commit --allow-empty -m \"{count}\"")

My computer shut down in the middle of this.

Turns out I ran git commit --allow-empty -m "$(init 0)"

Lesson learned!

5/5 stars, repo works very well

GoldenStack avatar Sep 05 '24 21:09 GoldenStack

At least you did not get $(rm -rvf .)

Semisol avatar Sep 05 '24 21:09 Semisol

lol, there should be a check for these types of commands

imeesa avatar Sep 05 '24 21:09 imeesa

@CuriousCodingCanadian that defeats the point :) it should teach you a lesson to escape shell commands

notcancername avatar Oct 12 '24 17:10 notcancername

Is that the purpose of this repo? I thought this was just for random commit messages

imeesa avatar Oct 12 '24 21:10 imeesa

maybe not, but the purpose of putting that there :D

notcancername avatar Oct 14 '24 22:10 notcancername

ah

imeesa avatar Oct 16 '24 17:10 imeesa

@CuriousCodingCanadian that defeats the point :) it should teach you a lesson to escape shell commands

deleting the user's cwd is a pretty shitty way of teaching a lesson imo

Shrecknt avatar Oct 16 '24 17:10 Shrecknt

fair enough

notcancername avatar Oct 18 '24 15:10 notcancername