Skip to content

Commit fa7a094

Browse files
committed
Force change the repository to a current one
1 parent fd22f2d commit fa7a094

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/GitPanel.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ export class GitPanel extends React.Component<IGitPanelProps, IGitPanelState> {
133133
componentDidMount(): void {
134134
const { model, settings } = this.props;
135135

136+
this.setState({
137+
repository: model.pathRepository
138+
});
139+
136140
model.repositoryChanged.connect((_, args) => {
137141
this.setState({
138142
repository: args.newValue

0 commit comments

Comments
 (0)