Skip to content

Commit 0827561

Browse files
committed
urlencode for branch names
fixes #148
1 parent 1d93fc2 commit 0827561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ private static function addRepoSubCommands()
372372
->comparator($parts[0].' @'.$branch->name)
373373
->subtitle($branch->commit->sha)
374374
->icon('branch')
375-
->arg('/'.$parts[0].'/tree/'.$branch->name)
375+
->arg('/'.$parts[0].'/tree/'.str_replace('%2F', '/', urlencode($branch->name)))
376376
);
377377
}
378378
break;

0 commit comments

Comments
 (0)