Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1627 from Wittiest/master
Browse files Browse the repository at this point in the history
πŸ› Fix default dir for git repo init
  • Loading branch information
smashwilson committed Aug 3, 2018
2 parents a749da1 + 7109147 commit 8ffa076
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/controllers/root-controller.js
Expand Up @@ -410,6 +410,10 @@ export default class RootController extends React.Component {
return null;
}

if (!initDialogPath) {
initDialogPath = this.props.repository.getWorkingDirectoryPath();
}

return new Promise(resolve => {
this.setState({initDialogActive: true, initDialogPath, initDialogResolve: resolve});
});
Expand Down

0 comments on commit 8ffa076

Please sign in to comment.