amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

Wrong source repository url

Open jo-elbdev opened this issue 4 years ago • 4 comments

Describe the bug In my gitlab repository, I renamed master branch to main. The shown source repository url from amplify now is set to gitlab.com/repository-name/group-name/tree/master instead of /main/.

To Reproduce Steps to reproduce the behavior:

  1. Create a gitlab repository
  2. Rename master to main
  3. connect branch to aws amplify
  4. see source repository url

Expected behavior It is expected to connect to the right url, so the deployment can work properly.

Desktop (please complete the following information):

  • OS: Mac OS Big Sur 11.1
  • Browser Safari

jo-elbdev avatar Feb 01 '21 00:02 jo-elbdev

Similar issue using github. Source repository information keeps switching between https://github.com/undefined/tree/master and the correct repo url, but with /master instead of /main/

batistaleandro avatar Feb 09 '21 21:02 batistaleandro

Facing the same issue. Did you guys figure it out?

mabdullahabid avatar Feb 10 '21 18:02 mabdullahabid

Facing the same issue. Did you guys figure it out?

Try creating your app using Amplify CLI.

I had to delete the app I created using the web interface, and create another one using the CLI tool. That was the only solution I could find.

batistaleandro avatar Feb 10 '21 18:02 batistaleandro

@batistaleandro using the Amplify CLI is not possible in my use case. I need a workaround for this issue, it is effecting production and non-production workloads

jsbUSMC avatar Jul 18 '22 15:07 jsbUSMC