From 37f46a032f1a937357df7405bb325a8e4d3b9a48 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 7 Aug 2017 14:28:28 +0300 Subject: *_eol_normalized: don't clean workdir --- %HOME%/.bash_utils/git.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to '%HOME%') diff --git a/%HOME%/.bash_utils/git.sh b/%HOME%/.bash_utils/git.sh index afb9831..83e7fab 100644 --- a/%HOME%/.bash_utils/git.sh +++ b/%HOME%/.bash_utils/git.sh @@ -25,9 +25,7 @@ alias workdir_clean_ignored='git clean -fdX' branch_eol_normalized() ( set -o errexit -o nounset -o pipefail - if workdir_is_clean; then - workdir_clean_ignored - else + if ! workdir_is_clean; then echo "${FUNCNAME[0]}: repository isn't clean" >&2 return 1 fi @@ -65,9 +63,7 @@ branch_eol_normalized() ( repo_eol_normalized() ( set -o errexit -o nounset -o pipefail - if workdir_is_clean; then - workdir_clean_ignored - else + if ! workdir_is_clean; then echo "${FUNCNAME[0]}: repository isn't clean" >&2 return 1 fi @@ -141,7 +137,6 @@ branch_backup() ( branch_backup_dropbox() ( set -o errexit -o nounset -o pipefail - branch_backup "$USERPROFILE/Dropbox/backups" ) -- cgit v1.2.3