Steffen Prohaska created JENKINS-13946:
------------------------------------------
Summary: git submodule fetch fails due to unpruned branch
Key: JENKINS-13946
URL: https://issues.jenkins-ci.org/browse/JENKINS-13946
Project: Jenkins
Issue Type: Bug
Components: git
Affects Versions: current
Reporter: Steffen Prohaska
If a branch (e.g. a/b) has replaced by a branch that includes a directory (e.g.
a/b/c), fetch fails with the following message:
'''
FATAL: Command "/usr/bin/git submodule update --init --recursive" returned
status code 1:
[...]
error: some local refs could not be updated; try running
'git remote prune origin' to remove any old, conflicting branches
Unable to fetch in submodule [...]
'''
To fix the issue, 'git prune' should include submodules and be run before
fetching.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira