X-Git-Url: https://git.donarmstrong.com/?p=bin.git;a=blobdiff_plain;f=update_org_files;h=d93a40bc0af098b84b43d3ec914244da19a4660f;hp=a17171be69b6f4e0e6ce10728b600d88f385cb86;hb=a86a71b0c965c73603ae84b266c12838c1289c54;hpb=fcb9663af99974099861745c7239333ea6e0eee2 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