From 01097616704651868949b3957ea949fb156377cd Mon Sep 17 00:00:00 2001
From: Alessio Igor Bogani <alessio.bogani@elettra.eu>
Date: Tue, 29 Mar 2022 12:21:28 +0200
Subject: [PATCH] Add a possible workaround for exit status 128 as comment

---
 inau-dispatcher.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/inau-dispatcher.py b/inau-dispatcher.py
index c101163..3b9723c 100755
--- a/inau-dispatcher.py
+++ b/inau-dispatcher.py
@@ -15,6 +15,7 @@ import logging
 import logging.handlers
 import argparse
 import datetime
+#import time
 import subprocess
 import paramiko
 import hashlib
@@ -94,6 +95,9 @@ class Builder:
     def update(self, job):
         logger.info("[" + self.name + "] Checkouting " + job.build_tag + " from " + job.repository_url + "...")
         builddir = self.platdir + "/" + job.repository_name
+        # Wait a second before start to update git repository to avoid:
+        # Command '['git -C /scratch/build/repositories//8/cs/etc/browser/booster reset --hard refs/tags/1.0.34']' returned non-zero exit status 128.
+        # time.sleep(1)
         if not os.path.isdir(self.platdir):
             os.mkdir(self.platdir)
         if os.path.isdir(builddir):
-- 
GitLab