This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Fix up a git repo containing submodules that have absolute paths which have changed. | |
# | |
# Note that this doesn't do the *proper* fix, which is to turn the absolute paths into | |
# relative paths. This is possible, but would require a lot more logic because the relative | |
# paths would be different in each case. | |
# | |
# What it does instead is a pragmatic workaround, which is to search & replace the old | |
# path with a new (and presumably correct) one. This will get you up and running again. |