git/branch: fix order of operations (thanks qwx)
This commit is contained in:
parent
beeb054209
commit
2367a2aeae
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ if(~ $#newbr 0){
|
|||
modified=`$nl{git/query -c HEAD $base | grep '^[^-]' | subst '^..'}
|
||||
deleted=`$nl{git/query -c HEAD $base | grep '^-' | subst '^..'}
|
||||
|
||||
if(! ~ $#modified 0 || ! ~ $#deleted 0 && ~ $#merge 0){
|
||||
if(! ~ $#modified 0 || {! ~ $#deleted 0 && ~ $#merge 0}){
|
||||
git/walk -fRMA $modified $deleted ||
|
||||
die 'uncommited changes would be clobbered'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue