This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Description
Prerequisites
Description
When a single file is opened in the editor and that file doesn't belong to a git repository, the Git pane proposses to Create Repository in the path of the actual file, not the directory of the file.
Steps to Reproduce
- Open any file that is not part of a repository (for instance the Atom config file
style.less)
- Open the git pane, if not open
- The git pan suggests to create a repository in the path of the file, e.g.,
$HOME/.atom/style.less
Expected behavior:
The path of the suggested repository should be the folder that contains the file, in my case $HOME/.atom.
Actual behavior:
The suggested repository path is the file itself.
Reproduces how often:
Every time.
Versions
Atom: 1.44.0
atom/github: 1.34.0
Additional Information
This might be an overlook in #2111