From 278c46a10697905e70867e42b41d2af1fad447bb Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sat, 20 Apr 2019 11:44:18 -0300 Subject: Avoid conflict with commit hashes --- ganarchy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ganarchy.py') diff --git a/ganarchy.py b/ganarchy.py index a9c3486..0737aa6 100755 --- a/ganarchy.py +++ b/ganarchy.py @@ -167,7 +167,7 @@ def remove(url): def cron_target(): """Runs ganarchy as a cron target""" def handle_target(url, project_commit): - branchname = hashlib.sha256(url.encode("utf-8")).hexdigest() + branchname = "gan" + hashlib.sha256(url.encode("utf-8")).hexdigest() try: pre_hash = subprocess.check_output(["git", "-C", cache_home, "show", branchname, "-s", "--format=%H", "--"], stderr=subprocess.DEVNULL).decode("utf-8").strip() except subprocess.CalledProcessError: -- cgit 1.4.1