mirror of
https://git.davidovski.xyz/davidovski.git
synced 2024-08-15 00:43:29 +00:00
fixed actually
This commit is contained in:
parent
ffc0eedf30
commit
a1945ff8a3
2 changed files with 6 additions and 8 deletions
11
build.py
11
build.py
|
@ -270,18 +270,19 @@ def create_repos():
|
||||||
print("Already have git path")
|
print("Already have git path")
|
||||||
|
|
||||||
for repo in get_repos():
|
for repo in get_repos():
|
||||||
|
repo = repo.strip()
|
||||||
print(repo)
|
print(repo)
|
||||||
name = ".".join(repo.split("/")[-1].split(".")[:-1])
|
name = ".".join(repo.split("/")[-1].split(".")[:-1])
|
||||||
|
os.system(f"mkdir -p /tmp/repos/{name} ;\
|
||||||
|
cd /tmp/repos/{name} ;\
|
||||||
|
git pull || git clone {repo} /tmp/repos/{name}")
|
||||||
|
|
||||||
os.system(f"mkdir -p {dist}/git/{name} ;\
|
command = subprocess.run(f"cd /tmp/repos/{name} && git log --pretty=format:'%h%x09%an%x09%ad%x09%s' --no-decorate -1", stdout=subprocess.PIPE, shell=True)
|
||||||
cd {dist}/git/{name} ;\
|
|
||||||
git pull || git clone {name}")
|
|
||||||
|
|
||||||
command = subprocess.run(f"cd {dist}/git/{name} && git log --pretty=format:'%h%x09%an%x09%ad%x09%s' --no-decorate -1", stdout=subprocess.PIPE, shell=True)
|
|
||||||
|
|
||||||
commit = command.stdout.decode()
|
commit = command.stdout.decode()
|
||||||
|
|
||||||
traverse_repo(os.path.join(git_path, name), name, commit, repo)
|
traverse_repo(os.path.join(git_path, name), name, commit, repo)
|
||||||
|
|
||||||
|
os.system(f"cp -r /tmp/repos/* {dist}/git")
|
||||||
make()
|
make()
|
||||||
create_repos()
|
create_repos()
|
||||||
|
|
3
build.sh
3
build.sh
|
@ -2,6 +2,3 @@
|
||||||
python build.py
|
python build.py
|
||||||
python gif.py
|
python gif.py
|
||||||
|
|
||||||
./sync.sh
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue