From 5dcb26e6f69c795cf86f3ff06a9de51eaa5951cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?oliver=20k=C3=B6nig?= Date: Fri, 31 Oct 2025 19:55:33 +0100 Subject: [PATCH] chore: Fix autoformatter (#2073) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: oliver könig --- tools/autoformat.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/autoformat.sh b/tools/autoformat.sh index fffc7725eb4..049ccbf10a8 100755 --- a/tools/autoformat.sh +++ b/tools/autoformat.sh @@ -15,9 +15,9 @@ CHECK_ONLY=${CHECK_ONLY:-false} SKIP_DOCS=${SKIP_DOCS:-false} BASE_REF=${BASE_REF:-main} -git remote set-url origin "https://github.com/NVIDIA/Megatron-LM.git" -git fetch origin ${BASE_REF} -CHANGED_FILES=$(git diff --name-only --diff-filter=d --merge-base origin/${BASE_REF} megatron/core tests/ | grep '\.py$' || true) +git remote add autoformatter-remote "https://github.com/NVIDIA/Megatron-LM.git" || true +git fetch autoformatter-remote ${BASE_REF} +CHANGED_FILES=$(git diff --name-only --diff-filter=d --merge-base autoformatter-remote/${BASE_REF} megatron/core tests/ | grep '\.py$' || true) ADDITIONAL_ARGS="" ADDITIONAL_BLACK_ARGS="" ADDITIONAL_PYLINT_ARGS=""