Skip to content

Commit be1828f

Browse files
wjcchaogeshuodiannao
andcommitted
test(install-sh): fix clone assertion to match actual git clone -- command
The test was searching for the old literal 'git clone $repo_url $repo_dir' but the implementation now uses 'git clone -- $repo_url $repo_dir' with the option terminator. Updated the test to match the actual implementation. Co-authored-by: cgsdn <[email protected]>
1 parent 357c02f commit be1828f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/scripts/install-sh.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ NODE
991991
expect(output).toContain(`git=${join(openclawHome, "openclaw")}`);
992992
const mkdirParentIndex = script.indexOf('mkdir -p "$(dirname "$repo_dir")"');
993993
const cloneIndex = script.indexOf(
994-
'run_quiet_step "Cloning OpenClaw" git clone "$repo_url" "$repo_dir"',
994+
'run_quiet_step "Cloning OpenClaw" git clone -- "$repo_url" "$repo_dir"',
995995
);
996996
expect(mkdirParentIndex).toBeGreaterThan(-1);
997997
expect(cloneIndex).toBeGreaterThan(-1);

0 commit comments

Comments
 (0)