Skip to content
This repository was archived by the owner on May 22, 2020. It is now read-only.

Automatically update submodule to the latest commit #1

Open
AlexSkrypnyk opened this issue Oct 15, 2012 · 1 comment
Open

Automatically update submodule to the latest commit #1

AlexSkrypnyk opened this issue Oct 15, 2012 · 1 comment

Comments

@AlexSkrypnyk
Copy link

Thank you for the great work on this project. It is really amazing time saver!

I've been struggling with the following issue (could not find the answer anywhere):
Because build directory is a submodule, every time build script is updated, commit reference in the main project has to be updated (by cd'ing into build dir and pulling changes) and pushed back to main's project, which almost defeats the purpose of linking submodule (the same commit of submodule will be used on every clone).

Is there any way to make git to pull the latest commit of all submodules (or at least 'build') when main project is cloned? Or is there any other way to track some specifi version of submodule such as by submodule's tag (tag can be moved in submodule's repo).

Thank you

@kasperg
Copy link
Owner

kasperg commented Oct 16, 2012

I'm glad you find the project useful.

There is no simple way of solving the problem you describe. That is just the way git submodules work. You could consider using alternate implementations of referencing external projects like braid or just copying the template files into a build folder in your repository.

In general I would hope that there was little need to actually modify the build submodule (that is why it is a template) and that changes/variations between projects could be kept in the build.properties file. If you are developing new features for the build that is obviously not the case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants