Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
🐛 Fix default dir for git repo init #1627
Description of the Change
The linked issue details the unexpected default directory when using the atom sidebar to initialize a git repository. This PR ensures that the default directory is the working directory, as would be expected.
Before this change, the conditional on line 35 of init-dialog.js would always set the default directory to the home directory.
An in-depth look at why initDialogPath is null here could possibly provide a more elegant solution; however, this is concise enough to fix the issue without needing consideration for negative fallouts.
Users initializing a git repository with the sidebar will now have the default directory begin being set to the current working directory. This is what most users would expect, rather than it defaulting to the home directory.
Ah, excellent. Thanks, this had been bugging me
Here's the section that's supposed to be populating the path argument:
But this will only work if you have an open TextEditor focused in your workspace center, which is not always the case. We could likely take that from