-
Bug
-
Resolution: Unresolved
-
Major
-
None
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.
[JENKINS-13946] git submodule fetch fails due to unpruned branch
Workflow | Original: JNJira [ 144414 ] | New: JNJira + In-Review [ 176143 ] |