Skip to content

Commit acbe7f6

Browse files
zaniebÅsmund Østvold
authored and
Åsmund Østvold
committed
Stream git output during git_clone_project (PrefectHQ#9149)
1 parent e360a9f commit acbe7f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/prefect/projects/steps/pull.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def git_clone_project(
3535
# Limit git history
3636
cmd += ["--depth", "1"]
3737

38-
subprocess.check_output(cmd, shell=sys.platform == "win32")
38+
subprocess.check_call(
39+
cmd, shell=sys.platform == "win32", stderr=sys.stderr, stdout=sys.stdout
40+
)
3941
directory = "/".join(repository.strip().split("/")[-1:]).replace(".git", "")
4042
return {"directory": directory}

0 commit comments

Comments
 (0)