d299f527a73cac710f47192be5a21a1c4b72bdc3
- Author
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Committer
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Date
Message
chore(tests): add repo-push test
Diff
1diff --git a/testscript/testdata/repo-push.txtar b/testscript/testdata/repo-push.txtar
2index d9f947537f105e879ab54275777c62250ffaa673..c4a5e243e1a9b021d207dddb6279588beeab37fe 100644
3--- a/testscript/testdata/repo-push.txtar
4+++ b/testscript/testdata/repo-push.txtar
5@@ -11,8 +11,14 @@ soft repo create repo-empty -d 'description' -H -p -n 'repo-empty'
6 # clone repo
7 git clone ssh://localhost:$SSH_PORT/repo-empty repo-empty
8
9-# push repo
10+# push repo without any commits
11 ! git -C repo-empty push origin HEAD
12
13+# push repo with a commit
14+mkfile ./repo-empty/README.md '# Hello\n\nwelcome'
15+git -C repo-empty add README.md
16+git -C repo-empty commit -m 'first'
17+git -C repo-empty push origin HEAD
18+
19 # stop the server
20 [windows] stopserver