-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
Summary of Issue:
Cannot exclude a sub-external repository with --exclude option.
Expected behavior and actual behavior:
Expected to be able run checkout_externals with a modified sub-external by excluding it. In screen capture below, the clubb repository should not be listed.
Actual behavior is that the sub-external is not excluded and the command fails.
Steps to reproduce the problem (should include model description file(s) or link to public repository):
- Run
checkout_externalson a repository with a sub-external - Modify a file in a sub-external
- Try to run
checkout_externalsby using the--excludeoption listing the modified sub-external
What is the changeset ID of the code, and the machine you are using:
have you modified the code? If so, it must be committed and available for testing: No
Screen output or log file showing the error message and context:
$ ../../manage_externals/checkout_externals --exclude clubb
Processing externals description file : Externals.cfg
Processing externals description file : Externals_CISM.cfg
Processing externals description file : Externals_CLM.cfg
Processing externals description file : Externals_CAM.cfg
Checking status of externals: cice, cime, cism, source_cism, clm, fates, ptclm, mosart, rtm, cam, chem_proc, carma, cosp2, clubb, silhs, pumas, atmos_phys,
./chem_proc
./cime
./components/cice
./components/cism
./components/cism/source_cism
./components/clm
./components/clm/src/fates
./components/clm/tools/PTCLM
./components/mosart
./components/rtm
./src/atmos_phys
./src/physics/carma/base
M ./src/physics/clubb
./src/physics/cosp2/src
./src/physics/pumas
./src/physics/silhs
----------------------------------------------------------------------
The external repositories labeled with 'M' above are not in a clean state.
The following are two options for how to proceed:
(1) Go into each external that is not in a clean state and issue either
an 'svn status' or a 'git status' command. Either revert or commit
your changes so that all externals are in a clean state. (Note,
though, that it is okay to have untracked files in your working
directory.) Then rerun checkout_externals.
(2) Alternatively, you do not have to rely on checkout_externals. Instead, you
can manually update out-of-sync externals (labeled with 's' above)
as described in the configuration file Externals.cfg.
The external repositories labeled with '?' above are not under version
control using the expected protocol. If you are sure you want to switch
protocols, and you don't have any work you need to save from this
directory, then run "rm -rf [directory]" before re-running the
checkout_externals tool.
----------------------------------------------------------------------