🐛 📺 pull --rebase before commit
All checks were successful
Update RSS / update-rss (push) Successful in 5m18s

This commit is contained in:
Jan Andrle 2024-07-06 20:05:05 +02:00
parent 8f0deba912
commit 7ebcf6e2d2
Signed by: jaandrle
GPG Key ID: B3A25AED155AFFAB

View File

@ -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");