fix (git): lint formatting in plugins
parent
6f1dcd1433
commit
f543e768cd
|
|
@ -320,7 +320,9 @@ function git-get-default-branch() {
|
|||
group 'git'
|
||||
example '$ git-get-default-branch'
|
||||
|
||||
echo $(basename $(git symbolic-ref refs/remotes/origin/HEAD))
|
||||
local BRANCH
|
||||
BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD)
|
||||
basename "$BRANCH"
|
||||
}
|
||||
|
||||
function git-delete-stale-branch() {
|
||||
|
|
@ -329,7 +331,7 @@ function git-delete-stale-branch() {
|
|||
example '$ git-delete-stale-branch [--force|-f]'
|
||||
|
||||
local CURR_BRANCH
|
||||
CURR_BRANCH=$(git branch | grep "*" | awk '{print $2}')
|
||||
CURR_BRANCH=$(git branch | grep "\*" | awk '{print $2}')
|
||||
|
||||
if [[ "$1" == "--force" ]] || [[ "$1" == "-f" ]]; then
|
||||
git branch | grep -vE "$(git-get-default-branch)|$CURR_BRANCH" | xargs git branch -D
|
||||
|
|
|
|||
Loading…
Reference in New Issue