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

Wrong path when create repository for single files #2407

@bmario

Description

@bmario

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

  1. Open any file that is not part of a repository (for instance the Atom config file style.less)
  2. Open the git pane, if not open
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions