File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -87,17 +87,21 @@ export class VirtualBranchService {
87
87
. map ( async ( b ) => {
88
88
const upstreamName = b . upstream ?. name ;
89
89
if ( upstreamName ) {
90
- const data = await getRemoteBranchData ( projectId , upstreamName ) ;
91
- const commits = data . commits ;
92
- commits . forEach ( ( uc ) => {
93
- const match = b . commits . find ( ( c ) => commitCompare ( uc , c ) ) ;
94
- if ( match ) {
95
- match . relatedTo = uc ;
96
- uc . relatedTo = match ;
97
- }
98
- } ) ;
99
- linkAsParentChildren ( commits ) ;
100
- b . upstreamData = data ;
90
+ try {
91
+ const data = await getRemoteBranchData ( projectId , upstreamName ) ;
92
+ const commits = data . commits ;
93
+ commits . forEach ( ( uc ) => {
94
+ const match = b . commits . find ( ( c ) => commitCompare ( uc , c ) ) ;
95
+ if ( match ) {
96
+ match . relatedTo = uc ;
97
+ uc . relatedTo = match ;
98
+ }
99
+ } ) ;
100
+ linkAsParentChildren ( commits ) ;
101
+ b . upstreamData = data ;
102
+ } catch ( e : any ) {
103
+ console . log ( e ) ;
104
+ }
101
105
}
102
106
return b ;
103
107
} )
You can’t perform that action at this time.
0 commit comments