diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2019-04-20 11:44:18 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2019-04-20 11:44:18 -0300 |
commit | 278c46a10697905e70867e42b41d2af1fad447bb (patch) | |
tree | 40412dbe327e4c3df58ccb35ed676b75276670d5 /ganarchy.py | |
parent | 105164e6619c92db20886af7539bb19a5bc915c5 (diff) |
Avoid conflict with commit hashes
Diffstat (limited to 'ganarchy.py')
-rwxr-xr-x | ganarchy.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |