27 lines
622 B
Python
Executable File
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:]))
|