File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ if [ $all -eq 1 ]; then
153
153
if [ $remote -eq 1 ]; then
154
154
if [ " ${branch: 0: 8} " == " remotes/" ]; then
155
155
name=" ${branch: 8} "
156
- remove_remote_branch ${name%/* } ${name#*/ }
156
+ remove_remote_branch ${name%% /* } ${name#*/ }
157
157
fi
158
158
else
159
159
remove_local_branch $branch
@@ -184,7 +184,7 @@ if [ $merged -eq 1 ]; then
184
184
185
185
for branch in " ${branches[@]} " ; do
186
186
if [ $remote -eq 1 ]; then
187
- remove_remote_branch ${branch%/* } ${branch#*/ }
187
+ remove_remote_branch ${branch%% /* } ${branch#*/ }
188
188
else
189
189
if [ $tracked -eq 1 ]; then
190
190
remove_tracking_branch $branch
@@ -236,7 +236,7 @@ if [ $stale -eq 1 ]; then
236
236
237
237
for branch in " ${branches[@]} " ; do
238
238
if [ $remote -eq 1 ]; then
239
- remove_remote_branch ${branch%/* } ${branch#*/ }
239
+ remove_remote_branch ${branch%% /* } ${branch#*/ }
240
240
else
241
241
remove_local_branch $branch
242
242
fi
You can’t perform that action at this time.
0 commit comments