| 1 | #!/bin/bash |
| 2 | |
| 3 | |
| 4 | repo=$(mktemp -d) |
| 5 | cd $repo |
| 6 | |
| 7 | mkdir "with space" |
| 8 | echo "file1 contents" > "with space/file1" |
| 9 | |
| 10 | mkdir "nospace" |
| 11 | echo "file2 contents" > "nospace/file2" |
| 12 | |
| 13 | git init |
| 14 | git commit --allow-empty -m "Initial commit" |
| 15 | git add . |
| 16 | git commit -m "Initial commit" |
| 17 | |
| 18 | git show |