summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-11-09 20:56:31 +0000
committerdavidovski <david@davidovski.xyz>2021-11-09 20:56:31 +0000
commitacf7b541daaa52ebe7b74542bc538faa3dda7dc5 (patch)
tree1b1db28022725113eb1639a433ee81e1baf16295
parent415e8b8e5753fe23ed2b620367a1434222d638ed (diff)
yes
-rw-r--r--build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.py b/build.py
index 44249c3..d076ccd 100644
--- a/build.py
+++ b/build.py
@@ -277,12 +277,13 @@ def create_repos():
cd /tmp/repos/{name} ;\
git pull || git clone {repo} /tmp/repos/{name}")
+ os.system(f"cp -r /tmp/repos/{name} {dist}/git")
+
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)
commit = command.stdout.decode()
traverse_repo(os.path.join(git_path, name), name, commit, repo)
- os.system(f"cp -r /tmp/repos/* {dist}/git")
make()
create_repos()