|
|
|
@ -50,8 +50,8 @@ test_expect_success \
@@ -50,8 +50,8 @@ test_expect_success \
|
|
|
|
|
'mkdir A B C D E F && |
|
|
|
|
echo hello1 >A/newfile1.txt && |
|
|
|
|
echo hello2 >B/newfile2.txt && |
|
|
|
|
cp "$TEST_DIRECTORY"/test9200a.png C/newfile3.png && |
|
|
|
|
cp "$TEST_DIRECTORY"/test9200a.png D/newfile4.png && |
|
|
|
|
cp "$TEST_DIRECTORY"/test-binary-1.png C/newfile3.png && |
|
|
|
|
cp "$TEST_DIRECTORY"/test-binary-1.png D/newfile4.png && |
|
|
|
|
git add A/newfile1.txt && |
|
|
|
|
git add B/newfile2.txt && |
|
|
|
|
git add C/newfile3.png && |
|
|
|
@ -76,8 +76,8 @@ test_expect_success \
@@ -76,8 +76,8 @@ test_expect_success \
|
|
|
|
|
rm -f B/newfile2.txt && |
|
|
|
|
rm -f C/newfile3.png && |
|
|
|
|
echo Hello5 >E/newfile5.txt && |
|
|
|
|
cp "$TEST_DIRECTORY"/test9200b.png D/newfile4.png && |
|
|
|
|
cp "$TEST_DIRECTORY"/test9200a.png F/newfile6.png && |
|
|
|
|
cp "$TEST_DIRECTORY"/test-binary-2.png D/newfile4.png && |
|
|
|
|
cp "$TEST_DIRECTORY"/test-binary-1.png F/newfile6.png && |
|
|
|
|
git add E/newfile5.txt && |
|
|
|
|
git add F/newfile6.png && |
|
|
|
|
git commit -a -m "Test: Remove, add and update" && |
|
|
|
@ -165,7 +165,7 @@ test_expect_success \
@@ -165,7 +165,7 @@ test_expect_success \
|
|
|
|
|
'mkdir "G g" && |
|
|
|
|
echo ok then >"G g/with spaces.txt" && |
|
|
|
|
git add "G g/with spaces.txt" && \ |
|
|
|
|
cp "$TEST_DIRECTORY"/test9200a.png "G g/with spaces.png" && \ |
|
|
|
|
cp "$TEST_DIRECTORY"/test-binary-1.png "G g/with spaces.png" && \ |
|
|
|
|
git add "G g/with spaces.png" && |
|
|
|
|
git commit -a -m "With spaces" && |
|
|
|
|
id=$(git rev-list --max-count=1 HEAD) && |
|
|
|
@ -177,7 +177,7 @@ test_expect_success \
@@ -177,7 +177,7 @@ test_expect_success \
|
|
|
|
|
test_expect_success \ |
|
|
|
|
'Update file with spaces in file name' \ |
|
|
|
|
'echo Ok then >>"G g/with spaces.txt" && |
|
|
|
|
cat "$TEST_DIRECTORY"/test9200a.png >>"G g/with spaces.png" && \ |
|
|
|
|
cat "$TEST_DIRECTORY"/test-binary-1.png >>"G g/with spaces.png" && \ |
|
|
|
|
git add "G g/with spaces.png" && |
|
|
|
|
git commit -a -m "Update with spaces" && |
|
|
|
|
id=$(git rev-list --max-count=1 HEAD) && |
|
|
|
@ -202,7 +202,7 @@ test_expect_success \
@@ -202,7 +202,7 @@ test_expect_success \
|
|
|
|
|
'mkdir -p Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö && |
|
|
|
|
echo Foo >Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.txt && |
|
|
|
|
git add Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.txt && |
|
|
|
|
cp "$TEST_DIRECTORY"/test9200a.png Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.png && |
|
|
|
|
cp "$TEST_DIRECTORY"/test-binary-1.png Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.png && |
|
|
|
|
git add Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.png && |
|
|
|
|
git commit -a -m "Går det så går det" && \ |
|
|
|
|
id=$(git rev-list --max-count=1 HEAD) && |
|
|
|
|