opencobra / memote

memote – the genome-scale metabolic model test suite
https://memote.readthedocs.io/
Apache License 2.0
123 stars 26 forks source link

Memote Git error #763

Open parsanayyara opened 3 months ago

parsanayyara commented 3 months ago

Hello,

I am trying to generate a memote report over a local git commit of a model and ran across this issue when trying to run

memote report history --location .

image

Followed the flowchart on https://memote.readthedocs.io/en/latest/flowchart.html but the error keeps showing up everytime I ran memote report. Could anyone help point out what the issue might be?

carrascomj commented 3 months ago

It seems like your git repository does not contain the deployment branch "gh-pages". You can create it yourself with:

git checkout -b gh-pages

Did you start the repository with memote new or manually (git init)?

Of course, if you only need a snapshot report, try:

memote report snapshot /path/to/model
parsanayyara commented 3 months ago

Hello, I resolved the previous error, but now am getting a new one related to the cookiecutter. image image

It looks to me like it could not find the 'master' branch; might be because the recent Git update that changes master to main?

carrascomj commented 3 months ago

Yes, that seems to be the problem, that must be fixed for it to work.

parsanayyara commented 2 months ago

Is there any possible way around it that doesn't require modifying the code? Would it work if I rename main to master maybe?

Midnighter commented 2 months ago

Is there any possible way around it that doesn't require modifying the code? Would it work if I rename main to master maybe?

We should change the cookiecutter to accept both master and main branches. Renaming the branch at this point won't help. You would have to manually perform the missing steps from the post generation hook.