VisualStudio icon indicating copy to clipboard operation
VisualStudio copied to clipboard

Create a Git Repository Dialog Box creates a local repo but not a remote

Open astrohart opened this issue 4 years ago • 5 comments

Versions

  • GitHub Extension for Visual Studio version: 2.11.106.19330
  • Visual Studio version: Version 16.8.4
  • I have Git for Windows; running git --version in Git Bash displays: git version 2.25.1.windows.1

What happened

The functionality that creates a new remote when using the Create a Git Repository appears to be broken.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Created a new Console Application (.NET Framework) project, MyConsoleApp
  2. In the Git Changes window, I clicked the Create Git Repository button.
  3. The Create a Git Repository dialog box appears. It showed my GitHub account and appeared to be connected to my account properly.
  4. I filled in the fields and specified a Public repository (I have a paid GitHub account, that allows Private repos).
  5. Clicked Push button.
  6. While a local repository was indeed created, no push operation was done.
  7. On GitHub, there was not a new remote repository listed under Your repositories when signed in.
  8. No errors appeared on the screen or anything; it simply would not do the create remote/push step.

Expected behavior

A new local repo would be created along with a remote repo in my GitHub account, and then the source files pushed to the remote. The first part occurred; the creation of the remote did not occur.

Screenshots

image

Logs

When following the directions to create logs in VS, the issue went away after VS was restarted. But, I swear it happened! Must have been a spurious fault.

astrohart avatar Feb 07 '21 15:02 astrohart

OK, now the issue has just come back. I existed VS, I deleted all my source files from disk and deleted the remote. Then I launched VS from my Taskbar shortcut that does not apply the /log parameter, and now the Create a Git Repository dialog box again will not create the remote for me.

Aaaarrggghhhh....

astrohart avatar Feb 07 '21 16:02 astrohart

Now, I have again, permanently deleted the local files on my computer for my repo, and I have done the steps over again, this time with devenv /log having been invoked from the Developer Command Prompt for VS2019.

The issue has been reproduced successfully. Although I wonder...this time, I am naming my app GumballMachine as opposed to MyConsoleApp...do you think that makes a difference?

16.0_0eae5245.zip

(In case It makes a difference...maybe the dialog is choking on a special character in my Description of the repo, here is the content of that field; (C#/x86-64/Console App/VS2019) The book, "Head First Design Patterns," illustrates the State Pattern by means of a Gumball Machine application. They write the application in Java; we are doing it here in C#. It's worked for other projects in the past, so I am not sure why it would not work now)

astrohart avatar Feb 07 '21 16:02 astrohart

I am now going to try my steps once more with a Console App (.NET Framework) project named MyConsoleApp once again and see if it makes a difference. I am using the text Junk repo as the Description of the repo.

image

Here's my Git Changes window after clicking Create and push in the dialog:

image

** RESULTS **

It created the local repo just fine, but no Push operation occurred. Clicking the Push button in the Git Changes window (as shown above) resulted in the Create a Git repository dialog being invoked again:

image

Clicking Push button dismisses the dialog box, and then nothing else happens.

The logs are attached. 16.0_0eae5245.zip

astrohart avatar Feb 07 '21 16:02 astrohart

The behavior above shows that this issue now occurs no matter what the repo is named, nor does it seem to depend on the text in the Description field.

astrohart avatar Feb 07 '21 16:02 astrohart

Experiencing the same after updating VS 2019 to 16.8.5.

mvp3 avatar Feb 13 '21 16:02 mvp3