Avoid conflict with commit hashes
This commit is contained in:
parent
105164e661
commit
278c46a106
|
@ -167,7 +167,7 @@ def remove(url):
|
||||||
def cron_target():
|
def cron_target():
|
||||||
"""Runs ganarchy as a cron target"""
|
"""Runs ganarchy as a cron target"""
|
||||||
def handle_target(url, project_commit):
|
def handle_target(url, project_commit):
|
||||||
branchname = hashlib.sha256(url.encode("utf-8")).hexdigest()
|
branchname = "gan" + hashlib.sha256(url.encode("utf-8")).hexdigest()
|
||||||
try:
|
try:
|
||||||
pre_hash = subprocess.check_output(["git", "-C", cache_home, "show", branchname, "-s", "--format=%H", "--"], stderr=subprocess.DEVNULL).decode("utf-8").strip()
|
pre_hash = subprocess.check_output(["git", "-C", cache_home, "show", branchname, "-s", "--format=%H", "--"], stderr=subprocess.DEVNULL).decode("utf-8").strip()
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
|
|
Loading…
Reference in New Issue