openartcoded / monorepo

Monorepo
MIT License
5 stars 0 forks source link

Cannot find a origin/master revision for 'app-docker' #1

Closed AdilHoumadi closed 2 years ago

AdilHoumadi commented 2 years ago

Hello @nbittich,

Following the doc, at this step git submodule update --init --recursive --remote in somehow git config expects the branch to be: origin/master

git submodule update --init --recursive --remote

Submodule 'app-docker' (git@github.com:openartcoded/app-docker.git) registered for path 'app-docker'
Submodule 'backend' (git@github.com:openartcoded/backend.git) registered for path 'backend'
Submodule 'backoffice' (git@github.com:openartcoded/backoffice.git) registered for path 'backoffice'
Submodule 'gateway' (git@github.com:openartcoded/gateway.git) registered for path 'gateway'
Submodule 'google-sync-backup' (git@github.com:openartcoded/google-sync-backup.git) registered for path 'google-sync-backup'
Submodule 'triplestore' (git@github.com:openartcoded/triplestore.git) registered for path 'triplestore'
Submodule 'website' (git@github.com:openartcoded/website.git) registered for path 'website'
Cloning into '/mnt/c/Users/houmadia/Projects/monorepo/app-docker'...
Cloning into '/mnt/c/Users/houmadia/Projects/monorepo/backend'...
Cloning into '/mnt/c/Users/houmadia/Projects/monorepo/backoffice'...
Cloning into '/mnt/c/Users/houmadia/Projects/monorepo/gateway'...
Cloning into '/mnt/c/Users/houmadia/Projects/monorepo/google-sync-backup'...
Cloning into '/mnt/c/Users/houmadia/Projects/monorepo/triplestore'...
Cloning into '/mnt/c/Users/houmadia/Projects/monorepo/website'...
fatal: Needed a single revision
Unable to find current origin/master revision in submodule path 'app-docker'

I had to do a git submodule foreach git checkout main

Thanks Adil

nbittich commented 2 years ago

Oops, thanks for noticing! I specified the branch in .gitmodules, hopefully this will fixes it

AdilHoumadi commented 2 years ago

It seems good!