ngerakines / commitment

A commit message generator that I use.
http://whatthecommit.com/
MIT License
1.2k stars 195 forks source link

I got owned by this repo #274

Open GoldenStack opened 1 month ago

GoldenStack commented 1 month ago

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

Semisol commented 1 month ago

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

CuriousCodingCanadian commented 1 month ago

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

notcancername commented 1 week ago

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

CuriousCodingCanadian commented 1 week ago

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

notcancername commented 6 days ago

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

CuriousCodingCanadian commented 4 days ago

ah

Shrecknt commented 4 days ago

@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

notcancername commented 2 days ago

fair enough