-
Notifications
You must be signed in to change notification settings - Fork 105
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
Support updating submodules to main branch #497
Support updating submodules to main branch #497
Conversation
TarSCM/scm/git.py
Outdated
@@ -201,7 +201,7 @@ def fetch_submodules(self): | |||
'--recursive'], | |||
cwd=self.clone_dir | |||
) | |||
elif 'submodules' in argsd and argsd['submodules'] == 'master': | |||
elif 'submodules' in argsd and argsd['submodules'] in [ 'main', 'master' ]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (83 > 79 characters)
whitespace after '['
whitespace before ']'
e7521af
to
5b09df7
Compare
@@ -201,7 +201,8 @@ def fetch_submodules(self): | |||
'--recursive'], | |||
cwd=self.clone_dir | |||
) | |||
elif 'submodules' in argsd and argsd['submodules'] == 'master': | |||
elif 'submodules' in argsd and | |||
argsd['submodules'] in ['main', 'master']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation is not a multiple of four
unexpected indentation
ed43621
to
cb1d272
Compare
TarSCM/scm/git.py
Outdated
@@ -201,7 +201,8 @@ def fetch_submodules(self): | |||
'--recursive'], | |||
cwd=self.clone_dir | |||
) | |||
elif 'submodules' in argsd and argsd['submodules'] == 'master': | |||
elif 'submodules' in argsd and \ | |||
argsd['submodules'] in ['main', 'master']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuation line over-indented for visual indent
main is the new master ... even better would be a possibility to specify the branch or tag. Maybe with tag:<SOMTHING>, but then the next question arises to do this per submodule ...
cb1d272
to
1429ea9
Compare
main is the new master ... even better would be a
possibility to specify the branch or tag. Maybe with tag:, but then the next question arises
to do this per submodule ...