• John Keeping's avatar
    submodule: drop the top-level requirement · 091a6eb0
    John Keeping authored
    Use the new rev-parse --prefix option to process all paths given to the
    submodule command, dropping the requirement that it be run from the
    top-level of the repository.
    Since the interpretation of a relative submodule URL depends on whether
    or not "remote.origin.url" is configured, explicitly block relative URLs
    in "git submodule add" when not at the top level of the working tree.
    Signed-off-by: John Keeping's avatarJohn Keeping <[email protected]>
    Signed-off-by: default avatarJunio C Hamano <[email protected]>
t7403-submodule-sync.sh 7.27 KB