Skip to content

Commit 29b5470

Browse files
authored
Merge pull request #566 from intersystems/issue-523
Fix GitUI branch regex
2 parents a5f3759 + f68fb0e commit 29b5470

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3131
- Force export of item if it has been modified (#354)
3232
- Production configuration page no longer closes Sync/WebUI when operations there change the production (#542)
3333
- Remove leading/trailing spaces from input to Configure() (#356)
34+
- Fix branches with special characters not showing in GitUI (#523)
3435

3536
## [2.6.0] - 2024-10-07
3637

git-webui/release/share/git-webui/webui/js/git-webui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
436436
var cardDiv = $('<div class="card custom-card">').appendTo(accordionDiv)[0];
437437
if (id.indexOf("local-branches") > -1) {
438438
// parses the output of git branch --verbose --verbose
439-
var matches = /^\*?\s*([\w-\/]+)\s+([^\s]+)\s+(\[.*\])?.*/.exec(ref);
439+
var matches = /^\*?\s*([\w-.@&_\/]+)\s+([^\s]+)\s+(\[.*\])?.*/.exec(ref);
440440
if (!matches) {
441441
continue;
442442
}

git-webui/src/share/git-webui/webui/js/git-webui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
436436
var cardDiv = $('<div class="card custom-card">').appendTo(accordionDiv)[0];
437437
if (id.indexOf("local-branches") > -1) {
438438
// parses the output of git branch --verbose --verbose
439-
var matches = /^\*?\s*([\w-\/]+)\s+([^\s]+)\s+(\[.*\])?.*/.exec(ref);
439+
var matches = /^\*?\s*([\w-.@&_\/]+)\s+([^\s]+)\s+(\[.*\])?.*/.exec(ref);
440440
if (!matches) {
441441
continue;
442442
}

0 commit comments

Comments
 (0)