diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2017-03-09 14:04:09 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2017-03-10 13:17:39 +0900 |
commit | 2fe1a3abbe511fad66a9a3e8e9dbbc952d258820 (patch) | |
tree | 4752629e89a1e70891d4e6e09fd6868bc6cc3a46 /org.eclipse.jgit/src/org/eclipse/jgit/submodule | |
parent | 3df65a387e623fcb2332f1732c53c2a466cbd2b7 (diff) | |
download | jgit-2fe1a3abbe511fad66a9a3e8e9dbbc952d258820.tar.gz jgit-2fe1a3abbe511fad66a9a3e8e9dbbc952d258820.zip |
FetchCommand: Fix detection of submodule recursion mode
The submodule.name.fetchRecurseSubmodules value was being read from the
configuration of the submodule, but it should be read from the config
of the parent repository.
Also, the fetch.recurseSubmodules value from the parent repository's
configuration was not being considered at all.
Fix both of these and add tests. Now the precedence of the recurse mode
is determined as follows:
1. Value passed to the API
2. Value configured in submodule.name.fetchRecurseSubmodules
3. Value configured in fetch.recurseSubmodules
4. Default to "on demand"
Change-Id: Ic23b7c40b5f39135fb3fd754c597dd4bcc94240c
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/submodule')
0 files changed, 0 insertions, 0 deletions