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 update for -latest flag #204

Merged
merged 3 commits into from
May 23, 2022
Merged

Conversation

DavidDiezIb
Copy link
Member

@DavidDiezIb DavidDiezIb commented May 10, 2022

DavidDiezIb Ok: 2

pull-submodules.py update to consider recent commits in branches when using -latest flag.
Print which branch is pulling from.

@@ -177,10 +177,10 @@ def main():
branchToPull = "master"
if branchExistsPcs.stdout.decode("utf-8").rstrip("\n") != "0":
branchToPull = frameworkBranchName
print(" --> Pulling branch : " + branchToPull + " ", end='')
print(" --> Pulling branch : " + branchToPull + " ", end='')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a reminder that we should use Python f-strings whenever possible 👍🏻

Suggested change
print(" --> Pulling branch : " + branchToPull + " ", end='')
print(f" --> Pulling branch: {branchToPull}", end='')

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a reminder that we should use Python f-strings whenever possible 👍🏻

@DavidDiezIb did you click on "commit suggestion" or did you write the commit yourself? just wondering in case you are not aware that you can accept suggestions from the web gui

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did it myself, good to know for the next time ;)

@jgalan
Copy link
Member

jgalan commented May 11, 2022

Hi @DavidDiezIb what about the pulling the branch change forcing that each submodule has a local branch and is thus not detached?

@jgalan
Copy link
Member

jgalan commented May 17, 2022

Why this PR was not yet merged?

@jgalan jgalan requested a review from juanangp May 23, 2022 14:43
@jgalan
Copy link
Member

jgalan commented May 23, 2022

Hi @lobis @juanangp I believe this PR solves the problems we were experiencing with the unexpected pull-submodules behaviour.

@jgalan
Copy link
Member

jgalan commented May 23, 2022

@lobis merging seems to be blocked by you

@lobis lobis merged commit b585914 into master May 23, 2022
@lobis lobis deleted the DavidDiezIb-pull-submodules branch May 23, 2022 15:18
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.

None yet

4 participants