这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@josegonzalez
Copy link
Member

Using --depth=1 breaks any submodules that are not at HEAD.

/cc @mmerickel

Using `--depth=1` breaks any submodules that are not at HEAD
@josegonzalez
Copy link
Member Author

I'm going to merge this without comment. It breaks existing applications that don't use HEAD of their submodules, which I think is pretty bad.

We can't do a --depth=1 || --depth=all as that will break (git will see the existing submodules and bork on the alternative). The only other method would be to retry the temp repository with a new base directory, but I don't feel like doing that (PRs welcome though!).

@mmerickel feel free to revisit this since I know it's a painful topic for you :(

josegonzalez added a commit that referenced this pull request Jan 3, 2016
Allow updating submodules at any revision
@josegonzalez josegonzalez merged commit 5387bce into master Jan 3, 2016
@josegonzalez josegonzalez deleted the josegonzalez-patch-1 branch January 3, 2016 01:07
@mmerickel
Copy link
Contributor

No problem, I shouldn't have thrown the submodule fix in there. It's not a feature I use myself. I naively assumed that --depth=1 would clone the commit the submodule was pinned to... not just head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants