From a4f2a0148845427260c5d6ed817a03cc587e5528 Mon Sep 17 00:00:00 2001 From: Mari Date: Wed, 13 May 2020 14:44:03 -0400 Subject: [PATCH] Autocommitted updated scripts from mari-wovn --- per-host/mari-wovn/.bash_aliases | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/per-host/mari-wovn/.bash_aliases b/per-host/mari-wovn/.bash_aliases index 8d8e6cb..c408cc4 100644 --- a/per-host/mari-wovn/.bash_aliases +++ b/per-host/mari-wovn/.bash_aliases @@ -89,13 +89,12 @@ function install_equalizer_deps() { } function delete_local_branch() { - ( + cd ~/equalizer.git; ( # set -o errexit # Can't do this inside a function set -o nounset set -o pipefail branch=${1:+feature/$1} branch=${branch:-$(get_current_branch_name)} || exit "$?" - cd ~/equalizer.git worktree="$(git worktree list --porcelain | grep -B2 ${branch} | cut -d' ' -f2 | head -n1)" || exit "$?" git worktree remove "$worktree" || exit "$?" git branch -d "$branch" || exit "$?"