diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-08-07 14:28:28 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-08-07 14:28:28 +0300 |
commit | 37f46a032f1a937357df7405bb325a8e4d3b9a48 (patch) | |
tree | 58db93cceb575d0e7c16c3791e7a11505572227f | |
parent | repo_branches: an alias now (diff) | |
download | linux-home-37f46a032f1a937357df7405bb325a8e4d3b9a48.tar.gz linux-home-37f46a032f1a937357df7405bb325a8e4d3b9a48.zip |
*_eol_normalized: don't clean workdir
Diffstat (limited to '')
-rw-r--r-- | %HOME%/.bash_utils/git.sh | 9 |
1 files changed, 2 insertions, 7 deletions
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" ) |