From a86a71b0c965c73603ae84b266c12838c1289c54 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 19 Feb 2018 10:55:00 -0800 Subject: [PATCH] use git pull --rebase instead of just git pull --- update_org_files | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2