diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-04-26 16:55:19 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-04-26 18:33:27 -0400 |
commit | adfa0f98f8a5aff80bc8b0e4ae3b3e3a90717498 (patch) | |
tree | fbdfa9fe998d7c9c29897cee12d1674f3864d5bd /tests | |
parent | 4d95f8528b200d39dfdacecc4a6098a0404cc36c (diff) |
Add failing test of paths containing spaces #127
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/examples/127-paths-with-spaces--added | 18 | ||||
-rwxr-xr-x | tests/examples/127-paths-with-spaces--renamed | 22 |
2 files changed, 40 insertions, 0 deletions
diff --git a/tests/examples/127-paths-with-spaces--added b/tests/examples/127-paths-with-spaces--added new file mode 100755 index 00000000..3a5096c2 --- /dev/null +++ b/tests/examples/127-paths-with-spaces--added @@ -0,0 +1,18 @@ +#!/bin/bash + + +repo=$(mktemp -d) +cd $repo + +mkdir "with space" +echo "file1 contents" > "with space/file1" + +mkdir "nospace" +echo "file2 contents" > "nospace/file2" + +git init +git commit --allow-empty -m "Initial commit" +git add . +git commit -m "Initial commit" + +git show diff --git a/tests/examples/127-paths-with-spaces--renamed b/tests/examples/127-paths-with-spaces--renamed new file mode 100755 index 00000000..740ce6e0 --- /dev/null +++ b/tests/examples/127-paths-with-spaces--renamed @@ -0,0 +1,22 @@ +#!/bin/bash + + +repo=$(mktemp -d) +cd $repo + +mkdir "with space" +echo "file1 contents" > "with space/file1" + +mkdir "nospace" +echo "file2 contents" > "nospace/file2" + +git init +git commit --allow-empty -m "Initial commit" +git add . +git commit -m "Initial commit" + +git mv "with space/file1" "with space/file1-renamed" +git mv "nospace/file2" "nospace/file2-renamed" +git commit -m "Rename" + +git show |