summaryrefslogtreecommitdiffstats
path: root/etc/examples/127-paths-with-spaces--renamed
diff options
context:
space:
mode:
Diffstat (limited to 'etc/examples/127-paths-with-spaces--renamed')
-rwxr-xr-xetc/examples/127-paths-with-spaces--renamed22
1 files changed, 22 insertions, 0 deletions
diff --git a/etc/examples/127-paths-with-spaces--renamed b/etc/examples/127-paths-with-spaces--renamed
new file mode 100755
index 00000000..740ce6e0
--- /dev/null
+++ b/etc/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