brackets-userland / brackets-git

brackets-git — git extension for adobe/brackets
Other
656 stars 193 forks source link

Cannot push to a tracking branch with a forward-slash in its name #1246

Open JKVeganAbroad opened 8 years ago

JKVeganAbroad commented 8 years ago

There is a bug when you "Create a new remote..." and give it a name with a forward-slash:

brackets git bug part a brackets git bug part b

  • Of course, I then pull the remote afterwards (no problems).
  • Then I make some changes and commit them.
  • Then I perform my first push:

brackets git bug part c brackets git bug part d

As you can see, the very first push was successful.

brackets git bug part e

When I hover the cursor over "Push to current tracking branch", I am not permitted to select it. Additionally, "Push to another branch" (which is pre-selected) has an empty, unpopulated drop-down list. I click on the "Refresh" icon, it performs a fetch request, and then the list remains empty.

Of course, with no other branch to push to, I can't push anything at all!

The bug

It turns out that because I named my remote with a forward slash between the words "GitHub" and "MyUniqueProject", the Brackets-Git extension is unable to perform further push requests.

Although we can push the project the first time, we are unable to push the project a second time due to this forward slash.

Workaround

When creating remotes, don't use a forward slash in the name

Potential Solutions

This is the root cause for Issue#1047