gitreflow icon indicating copy to clipboard operation
gitreflow copied to clipboard

git reflow with git submodules

Open mishagray opened this issue 10 years ago • 3 comments

So I seem to have a problem using git reflow inside of a git submodule.

What I want to be able to do, is simultaneously work on an App and a Framework library (which is setup as a gitsubmodule of the app) at the same time.

In general the Framework has to be tested using the app anyways. So we wouldn't develop 'outside' of the submodule.

Steps

  • have any repo that has a submodule. (ex: App)
  • cd into the submodule (assume it is currently pointing to master). (ex Lib)
  • run 'git reflow start mg_my_new_feature'
  • edit some stuff and commit.
  • run 'git reflow review`

Get this error: error: Not a directory - /repos/App/Lib/.git/GIT_REFLOW_PR_MSG

mishagray avatar Jan 08 '16 04:01 mishagray

@mishagray About to tackle this. Since I don't personally have a use-case, can you clarify expectations? You would like git-reflow to target the sub-module when run inside the sub-module working tree?

codenamev avatar Apr 26 '18 12:04 codenamev

Future self: How to know if in submodule

codenamev avatar May 10 '18 14:05 codenamev