summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-04-26 16:54:28 -0400
committerDan Davison <dandavison7@gmail.com>2020-04-26 18:33:27 -0400
commit4d95f8528b200d39dfdacecc4a6098a0404cc36c (patch)
tree89b1a4bc94b6b6a92cb57aaea53fe563b03449f6 /tests
parent7cdebd72140b6428125a71b2c56d082990243474 (diff)
Add failing test of empty commit / empty files #128
Diffstat (limited to 'tests')
-rwxr-xr-xtests/examples/128-empty-file15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/examples/128-empty-file b/tests/examples/128-empty-file
new file mode 100755
index 00000000..a52bdb0c
--- /dev/null
+++ b/tests/examples/128-empty-file
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+
+repo=$(mktemp -d)
+cd $repo
+
+git init
+git commit --allow-empty -m "Initial commit"
+
+touch file
+
+git add file
+git commit -m "Initial commit"
+
+git show