diff --git a/cli.mjs b/cli.mjs index a67907d..9db102e 100755 --- a/cli.mjs +++ b/cli.mjs @@ -32,7 +32,7 @@ $.api() .command("pull", "Update article list") .option("--git", "Update git repository") .action(async function pull({ git: is_git= false }){ - if(is_git) s.run`git pull --force`; + if(is_git) s.run`git pull --rebase`; const { changed }= await sitemap().then(toRSS); echo("Changed files:", changed.length ? changed.join(", ") : "—"); if(is_git) gitCommit(changed, "pull");