From 2f102e4036c3a49e5d40883fa4ef59193c9d943c Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sat, 23 Aug 2025 22:08:04 +0200 Subject: g2h: Add test_repo --- .gitignore | 1 + mise.toml | 10 +++++++++- test_repo/.gitignore | 1 + test_repo/git.tgz | Bin 0 -> 16070 bytes 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 test_repo/.gitignore create mode 100644 test_repo/git.tgz diff --git a/.gitignore b/.gitignore index 9f2e848..974957a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .DS_Store __pycache__/ +/test_out/ diff --git a/mise.toml b/mise.toml index 9358152..0854dbd 100644 --- a/mise.toml +++ b/mise.toml @@ -9,4 +9,12 @@ run = "pip install -r requirements.txt" [tasks.run] description = "Run g2h with the test repo" alias = "r" -run = "python3 -m g2h.cli" +run = "rm -rf ./test_out && python3 -m g2h.cli test_repo test_out" + +[tasks.commit] +run = [ + 'tar czf test_repo/git.tgz -C test_repo .git*', + 'rm -rf test_repo/.git*', + './.mise-tasks/co.sh {{arg(name="commit args", var=true)}}', + 'tar xzf test_repo/git.tgz -C test_repo' +] diff --git a/test_repo/.gitignore b/test_repo/.gitignore new file mode 100644 index 0000000..bcbb3fd --- /dev/null +++ b/test_repo/.gitignore @@ -0,0 +1 @@ +/git.tgz diff --git a/test_repo/git.tgz b/test_repo/git.tgz new file mode 100644 index 0000000..eff0b2c Binary files /dev/null and b/test_repo/git.tgz differ -- cgit v1.2.3