Skip to content

Commit

Permalink
fix: Use the whole arv in GALLIA_INVOCATION
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpelsepp committed Oct 31, 2022
1 parent 9818b0c commit 33933db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gallia/command/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import asyncio
import fcntl
import os
import os.path
import shutil
import signal
import sys
Expand Down Expand Up @@ -152,10 +153,12 @@ def run_hook(

hook_id = f"{variant.value}-hook"

argv = sys.argv[:]
argv[0] = os.path.basename(argv[0])
env = {
"GALLIA_ARTIFACTS_DIR": str(self.artifacts_dir),
"GALLIA_HOOK": variant.value,
"GALLIA_INVOCATION": sys.argv[0],
"GALLIA_INVOCATION": " ".join(argv),
} | os.environ

if self.COMMAND is not None:
Expand Down

0 comments on commit 33933db

Please sign in to comment.