Files
2dph/bin/git/import
T
eSliderandGitHub a8675ac33b
Tests / Test (push) Failing after 5s
Tests / Release (semver) (push) Skipped
feat: read git history with go-git, not the git binary (#15)
2026-08-13 18:07:56 +01:00

27 lines
622 B
Python
Executable File

#!/usr/bin/env python3
"""git/import — deprecated. Use bin/git/import.go (go-git, no git binary).
bin/git/import.go [REPO] [--json] [--limit N] [--since DATE]
"""
from __future__ import annotations
import os
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
def main(argv: list[str]) -> int:
print(
"bin/git/import is deprecated; use bin/git/import.go (go-git)",
file=sys.stderr,
)
target = ROOT / "bin" / "git" / "import.go"
os.execvp("go", ["go", "run", str(target), *argv])
return 1
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))