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

"Init" is only menu option available in active Git repo. #576

Closed
phyllisstein opened this issue Dec 23, 2016 · 2 comments
Closed

"Init" is only menu option available in active Git repo. #576

phyllisstein opened this issue Dec 23, 2016 · 2 comments

Comments

@phyllisstein
Copy link

Hey there! I've noticed that since upgrading to 6.0.0, I'm no longer able to access any of Git Plus' commands in the Command Palette, with the exception of "Init." I'm running an Atom window with an active Git repo, as you can see from the attached screenshot, where Atom detects the current branch successfully.

A little experimentation suggests that this only happens when opening a project from Project Manager or dragging a folder into an empty workspace. Dragging a folder directly onto the Atom icon makes all the commands available. Not altogether sure what this portends though.

screen shot 1

Steps to reproduce:
  1. Open a new, empty Atom workspace.
  2. Drag and drop a Git repo's root folder onto the window to open it.
  3. Summon the Command Palette and type "Git Plus."
  4. Search in vain for commands.
AdrianVovk pushed a commit to SubstanceMobile/git-support that referenced this issue Dec 24, 2016
Context-menu actions get repo based on selected path
@akonwi
Copy link
Owner

akonwi commented Dec 24, 2016

The last update to the package had a change to only show the Init command when no repositories were found in the project. Unfortunately it seems atom doesn't have an API for detecting when a new project has been added to the project. I'm going to do more investigating and see if something can be down about that.

Update: there is an api and I've released the fix

@akonwi akonwi closed this as completed in fc748d1 Dec 24, 2016
@phyllisstein
Copy link
Author

💃 Awesome! Thanks so much for turning this around so quickly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants