JanitorTechnology / dockerfiles

popular development environments as containers
https://hub.docker.com/u/janitortechnology/
53 stars 20 forks source link

[chromium] git repo in new containers is in "detached HEAD" by default #90

Closed jankeromnes closed 7 years ago

jankeromnes commented 7 years ago

In a brand new container:

user@065ba82c187c:~/chromium/src ((03ef2fd...)) $ git branch
* (HEAD detached at origin/master)
  master
jankeromnes commented 7 years ago

The current commands used to check out Chromium are here, but basically:

@beaufortfrancois do you have any idea why the resulting repository is "HEAD detached at origin/master" instead of "HEAD == master == origin/master"?

beaufortfrancois commented 7 years ago

It is because the workflow now is to use git new-branch foo IIRC.

For info, linux setup instructions are available at https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md

jankeromnes commented 7 years ago

Ah, so a detached HEAD at origin/master is expected behavior. Thanks!

I'll close this issue then.