git - Submodule merge failure - "not checked out" warning -



git - Submodule merge failure - "not checked out" warning -

how can merge submodule after having had next warning?

warning: failed merge submodule sites/all/modules/contrib/panelizer (not checked out)

that error message comes submodule.c, merge_submodule() method:

int merge_submodule(unsigned char result[20], const char *path, const unsigned char base[20], const unsigned char a[20], const unsigned char b[20], int search) { struct commit *commit_base, *commit_a, *commit_b; int parent_count; struct object_array merges; // [...] if (add_submodule_odb(path)) { merge_warning(path, "not checked out"); homecoming 0; }

and add_submodule_odb() method checking .git presence within said submodule.

so, jefromi comments, didn't git submodule update described in pro git book. should see question "git - easy way pull latest of submodules" more on how content of all submodules.

with recent git, can pull , update in 1 go:

git alias update_submodules='git pull --recurse-submodules && git submodule update'

git

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -