Skip to content

Commit

Permalink
chore: add test for repo commit command
Browse files Browse the repository at this point in the history
Reference: #331
  • Loading branch information
aymanbagabas committed Jul 13, 2023
1 parent ca51947 commit b022295
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions testscript/testdata/repo-commit.txtar
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# vi: set ft=conf

# convert crlf to lf on windows
[windows] dos2unix tree1.txt tree2.txt tree3.txt

# create a repo
soft repo import basic1 https://github.com/git-fixtures/basic

# print commit
soft repo commit basic1 b8e471f58bcbca63b07bda20e428190409c2db47
cmp stdout commit1.txt

-- commit1.txt --
commit b8e471f58bcbca63b07bda20e428190409c2db47
Author: Daniel Ripolles
Date: Tue Mar 31 07:44:52 EDT 2015
Creating changelog


CHANGELOG | 1 +
1 file changed, 1 insertion(+)

diff --git a/CHANGELOG b/CHANGELOG
new file mode 100644
index 0000000000000000000000000000000000000000..d3ff53e0564a9f87d8e84b6e28e5060e517008aa
--- /dev/null
+++ b/CHANGELOG
@@ -0,0 +1 @@
+Initial changelog

File renamed without changes.

0 comments on commit b022295

Please sign in to comment.