X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=update_org_files;h=d93a40bc0af098b84b43d3ec914244da19a4660f;hb=090779c26defdd9d548378706d1e26e3396f3445;hp=a17171be69b6f4e0e6ce10728b600d88f385cb86;hpb=eec9b1a22999236b4f62faeeccd4af28a5f3413c;p=bin.git diff --git a/update_org_files b/update_org_files index a17171b..d93a40b 100755 --- a/update_org_files +++ b/update_org_files @@ -9,9 +9,11 @@ if [ "x$UPDATE_ORG_REALLY_DO_IT" == "xyesdoit" ]; then git status --porcelain -z | grep -z '^ M' | grep -z $ORG_GREP | \ sed -z 's/^ M[[:space:]]*//g' | \ xargs -0 git commit -m"$COMMIT_MESSAGE" + git pull --rebase; git push; + else + git pull --rebase; fi; - git pull; else if [ "x$NO_SAVE_ORG_BUFFERS" == "x" ]; then emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1