Skip to content
Snippets Groups Projects
Commit 3165a737 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Debug prelude for git

parent 4f49b9da
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,20 @@ class CloneAction(Action):
checkout_cmds.append(f'git -C "$SOURCE_DIR" checkout -b "{branch}" "origin/{branch}"')
checkout_cmds.append("true")
script += " || \\\n ".join(checkout_cmds)
return script
from textwrap import dedent
debug_prelude = dedent("""
export GIT_TRACE=2
export GIT_CURL_VERBOSE=2
export GIT_TRACE_PERFORMANCE=2
export GIT_TRACE_PACK_ACCESS=2
export GIT_TRACE_PACKET=2
export GIT_TRACE_PACKFILE=2
export GIT_TRACE_SETUP=2
export GIT_TRACE_SHALLOW=2
""")
return debug_prelude + script
def _is_satisfied(self):
return os.path.exists(self.environment["SOURCE_DIR"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment