From d299f527a73cac710f47192be5a21a1c4b72bdc3 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 25 Mar 2025 23:42:03 +0300 Subject: [PATCH] chore(tests): add repo-push test --- testscript/testdata/repo-push.txtar | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/testscript/testdata/repo-push.txtar b/testscript/testdata/repo-push.txtar index d9f947537f105e879ab54275777c62250ffaa673..c4a5e243e1a9b021d207dddb6279588beeab37fe 100644 --- a/testscript/testdata/repo-push.txtar +++ b/testscript/testdata/repo-push.txtar @@ -11,8 +11,14 @@ soft repo create repo-empty -d 'description' -H -p -n 'repo-empty' # clone repo git clone ssh://localhost:$SSH_PORT/repo-empty repo-empty -# push repo +# push repo without any commits ! git -C repo-empty push origin HEAD +# push repo with a commit +mkfile ./repo-empty/README.md '# Hello\n\nwelcome' +git -C repo-empty add README.md +git -C repo-empty commit -m 'first' +git -C repo-empty push origin HEAD + # stop the server [windows] stopserver