summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-04-26 16:55:19 -0400
committerDan Davison <dandavison7@gmail.com>2020-04-26 18:33:27 -0400
commitadfa0f98f8a5aff80bc8b0e4ae3b3e3a90717498 (patch)
treefbdfa9fe998d7c9c29897cee12d1674f3864d5bd /tests
parent4d95f8528b200d39dfdacecc4a6098a0404cc36c (diff)
Add failing test of paths containing spaces #127
Diffstat (limited to 'tests')
-rwxr-xr-xtests/examples/127-paths-with-spaces--added18
-rwxr-xr-xtests/examples/127-paths-with-spaces--renamed22
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