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.

Init should default to current project root #1237

Closed

Description

@winstliu

Prerequisites

Description

Today I created a new folder and opened Atom in it, intending to start working on a new Git repository. So I clicked on the 0 files icon and then tried to init a repository. Instead of populating the location field with the project I had opened, it defaulted to %USERPROFILE%\github.

Steps to Reproduce

  1. Open a folder in Atom that is not a Git repository
  2. Try to init through the github package

Expected behavior: Field should be pre-populated with current project path

Actual behavior: Populated with C:\Users\<username>\github

Reproduces how often: 100%

Versions

Atom    : 1.23.0-dev-042c22f43
Electron: 1.6.15
Chrome  : 56.0.2924.87
Node    : 7.4.0

Activity

  1. simurai commented on Jan 4, 2018

    @simurai
    Contributor

    Ran into this too. Here a gif:

    init

    Having to enter the project name seems unexpected and in my case I just clicked on "Init" without paying attention which then created a Git repo with all my projects in the parent github directory.

    Would it be possible to skip the second step? So if you click on the "Create repository" button, it would initialize in the current directory without having to type the path.

  2. winstliu commented on Jan 4, 2018

    @winstliu
    ContributorAuthor

    Would it be possible to skip the second step? So if you click on the "Create repository" button, it would initialize in the current directory without having to type the path.

    This seems logical.

  3. smashwilson commented on Apr 5, 2020

    @smashwilson
    Contributor

    This was fixed in #1627 and we just didn't notice the issue link 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions