Stephan, I have a kinda-crazy feature request: would it be possible to augment this functionality to also use reference repos for submodules? In our use case, we have a submodule that is as large as our 'main' module.

git submodule update supports the `--reference` flag, so I think this would be replacing the current `git submodule update --init --recursive` with something like (bash-style psuedocode):

git submodule init
refdir=`cat .git/objects/info/alternates`
for repo in `git submodule status | awk '{print $2}'`; do
   if [ -d "$refdir/../modules/$repo/objects ]; then
      git submodule update --reference $refdir/$repo --recursive -- $repo
   else
      git submodule update --recursive -- $repo
   fi
done

(Though I admit I'm confused by how git references play around with submodules, so maybe the above won't work. It seemed to in my testing, at least.)

Thanks!
craig

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to