Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull-submodules.py general improvement. Added option --onlylibs #224

Merged
merged 1 commit into from
May 24, 2022

Conversation

jgalan
Copy link
Member

@jgalan jgalan commented May 24, 2022

jgalan Ok: 36

The following updates have been added to pull-submodules.py

  • A new option --onlylibs will force the script to pull only the submodules found at libraries directory.
  • The repositories that contain data, external or userguide will be now excluded by default.
  • A --help or -h option has been added, and documentation has been improved.

For example, we could use it as follows to simplify the pulling procedure, pulling only geant4lib,rawlib, and connectorslib

jgalan@sultan:~/rest-framework$ python3 pull-submodules.py --onlylibs --exclude:axion,detector,track
Framework branch name: jgalan_pull_submodules
source/libraries/geant4[ OK ] (9397cd2)
source/libraries/raw[ OK ] (b15d1cc)
source/libraries/connectors[ OK ] (de207df)
jgalan@sultan:~/rest-framework$ 

Help output has also been reviewed:

jgalan@sultan:~/rest-framework$ python3 pull-submodules.py --help
 pull-submodules.py is a helper script to pull REST-for-Physics related submodules

Usage:
python3 pull-submodules.py --clean
python3 pull-submodules.py --latest
 
 --clean : It will restore all submodules to the official release versions
 --latest : It will pull the master branch of each submodule

When using --clean make sure the framework local repository is at an official release

 Other complementary options:
  --force : It will override changes using git reset
  --dontask : It wont ask when overriding changes
  --lfna : It will pull LFNA Git repositories. SSH grant required
  --sjtu : It will pull SJTU Git repositories. SSH grant required
  --exclude:lib1,lib2 will prevent lib1,lib2 from being pulled
  --onlylibs: It will pull only the REST library submodules

@jgalan jgalan requested review from lobis, juanangp, nkx111 and a team May 24, 2022 11:15
@jgalan jgalan marked this pull request as ready for review May 24, 2022 11:22
@jgalan jgalan merged commit 8b722e1 into master May 24, 2022
@jgalan jgalan deleted the jgalan_pull_submodules branch May 25, 2022 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants