New Git integration issue

Continuing the discussion from :loudspeaker: New: Connect your Anvil apps to GitHub repositories:

I have my project synced with my external git repo.

I tried to create a new branch in the anvil ide, but this page appeared when I did :

image

Now, I can’t seem to load the project at all, any attempt to refresh shows the grey page above.

Worth noting it did create the new branch on the repo (though no files in it).

edit - cleared cache & cookies, no difference. Guess I might need to PM someone the app id?

Thanks for letting us know about this, we’ll investigate!

1 Like

The problem is that your main and colab branches point to a commit that doesn’t contain an Anvil app! So the Editor explodes.

Your master branch is fine, and I’ve switched you over to that one to make the editor load again. Now you can delete your main and colab branches, and recreate them where master is. Then all should be well.

1 Like

OK, thanks. That worked.

So who created the main branch? Pretty sure I didn’t. The project came with a master branch, so I’m guessing it was Anvil?

Git confuses me :slight_smile:

edit - also, I can’t delete the “main” branch. It gave me the option when I right clicked, but it’s still there afterwards and now I don;t get the delete option in the menu :

image

I suspect Gitlab created that empty “Initial commit” when you created the repository.

I also suspect that GitLab is preventing you from deleting the main branch. Anvil apps require the master branch for now.

One final update here: This should actually never have worked in the first place! Private git repositories are only supposed to be accessible on the Business Plan and above, and I’m afraid we’ve now fixed that. Sorry!

Is that not what I have?

image

1 Like

We know that we have an open support ticket about this, and we’ll respond there!

2 Likes