diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-08-23 22:08:04 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-08-23 22:11:28 +0200 |
| commit | 2f102e4036c3a49e5d40883fa4ef59193c9d943c (patch) | |
| tree | 4b8e2285f443d045096dcfed868a4d8317ca20da | |
| parent | 401d90ed9f087e43d7fa00213d50cffeb99ceef8 (diff) | |
| download | git2hugo-2f102e4036c3a49e5d40883fa4ef59193c9d943c.tar.gz | |
g2h: Add test_repo
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | mise.toml | 10 | ||||
| -rw-r--r-- | test_repo/.gitignore | 1 | ||||
| -rw-r--r-- | test_repo/git.tgz | bin | 0 -> 16070 bytes |
4 files changed, 11 insertions, 1 deletions
@@ -1,2 +1,3 @@ .DS_Store __pycache__/ +/test_out/ @@ -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 Binary files differnew file mode 100644 index 0000000..eff0b2c --- /dev/null +++ b/test_repo/git.tgz |