From 540c45bfec37266d943a1433bff82c9f88068fb5 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 24 Jan 2025 16:27:24 -0800 Subject: [PATCH] Log git diff inside submodules (#34469) get diffs inside submodules --- system/updated/updated.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/updated/updated.py b/system/updated/updated.py index a1a74c322c..0759c0a7aa 100755 --- a/system/updated/updated.py +++ b/system/updated/updated.py @@ -172,7 +172,7 @@ def init_overlay() -> None: run(["sudo"] + mount_cmd) run(["sudo", "chmod", "755", os.path.join(OVERLAY_METADATA, "work")]) - git_diff = run(["git", "diff"], OVERLAY_MERGED) + git_diff = run(["git", "diff", "--submodule=diff"], OVERLAY_MERGED) params.put("GitDiff", git_diff) cloudlog.info(f"git diff output:\n{git_diff}")