aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xgist7
1 files changed, 6 insertions, 1 deletions
diff --git a/gist b/gist
index 13a6667..2f0d185 100755
--- a/gist
+++ b/gist
@@ -514,7 +514,12 @@ _push_to_remote() {
514 _gist_id "$1" 514 _gist_id "$1"
515 cd "$folder/$GIST_ID" || return 1 515 cd "$folder/$GIST_ID" || return 1
516 fi 516 fi
517 git add . && git commit -m 'update' && git push origin master 517 if [[ -n $(git status --short) ]]; then
518 git add . && git commit -m 'update'
519 fi
520 if [[ -n $(git cherry) ]]; then
521 git push origin master
522 fi
518} 523}
519 524
520# Set filename/description/permission for a new gist 525# Set filename/description/permission for a new gist