Skip to content

Conversation

@evallesp
Copy link
Contributor

We're adding the possibility to remove the remote. This, with the addition of names_url_dict, makes the posibility of checking the remote url, and if it's updated, then remove it for re-creating.

@evallesp evallesp self-assigned this Mar 14, 2025
evallesp added a commit to evallesp/patch_rebaser that referenced this pull request Mar 14, 2025
Previously we were checking if the remote name is there to add it.
Now, if the patches_repo url has changed, but we maintain the same
remote_name, this is updated.

For doing this, we just check if the remote_name exists and if the
patches_repo differs from its value. If so, we just remove the remote
so next line below it'd recreate it.

Not it's based on new git_wrapper version that allows to return the
remote dict with its value but also to remove the remote.

Requires: release-depot/git_wrapper#114
Copy link
Member

@jguiditta jguiditta left a comment

Choose a reason for hiding this comment

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

Couple minor things, otherwise seems reasonable

Copy link

@eggmaster eggmaster left a comment

Choose a reason for hiding this comment

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

couple comments in addition/response to jguiditta's, but this looks good to me otherwise!

evallesp added a commit to evallesp/patch_rebaser that referenced this pull request Mar 24, 2025
Previously we were checking if the remote name is there to add it.
Now, if the patches_repo url has changed, but we maintain the same
remote_name, this is updated.

For doing this, we just check if the remote_name exists and if the
patches_repo differs from its value. If so, we just remove the remote
so next line below it'd recreate it.

Not it's based on new git_wrapper version that allows to return the
remote dict with its value but also to remove the remote.

Requires: release-depot/git_wrapper#114
@evallesp evallesp force-pushed the add-remove-remote branch from 7415ca0 to e05895a Compare March 24, 2025 12:56
@evallesp evallesp force-pushed the add-remove-remote branch from e05895a to 1a33779 Compare March 24, 2025 13:05
eggmaster
eggmaster previously approved these changes Mar 24, 2025
Copy link
Member

@jguiditta jguiditta left a comment

Choose a reason for hiding this comment

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

One question, otherwise, I think this is good!

We're adding the possibility to remove the remote.
This, with the addition of names_url_dict, makes the posibility
of checking the remote url, and if it's updated, then remove it
for re-creating.
@evallesp evallesp force-pushed the add-remove-remote branch from 1a33779 to 3a24f99 Compare March 25, 2025 08:10
evallesp added a commit to evallesp/patch_rebaser that referenced this pull request Mar 25, 2025
Previously we were checking if the remote name is there to add it.
Now, if the patches_repo url has changed, but we maintain the same
remote_name, this is updated.

For doing this, we just check if the remote_name exists and if the
patches_repo differs from its value. If so, we just remove the remote
so next line below it'd recreate it.

Not it's based on new git_wrapper version that allows to return the
remote dict with its value but also to remove the remote.

Requires: release-depot/git_wrapper#114
@eggmaster eggmaster merged commit 36aef77 into release-depot:master Mar 25, 2025
8 checks passed
evallesp added a commit to evallesp/patch_rebaser that referenced this pull request Mar 25, 2025
Previously we were checking if the remote name is there to add it.
Now, if the patches_repo url has changed, but we maintain the same
remote_name, this is updated.

For doing this, we just check if the remote_name exists and if the
patches_repo differs from its value. If so, we just remove the remote
so next line below it'd recreate it.

Not it's based on new git_wrapper version that allows to return the
remote dict with its value but also to remove the remote.

Requires: release-depot/git_wrapper#114
evallesp added a commit to evallesp/patch_rebaser that referenced this pull request Mar 25, 2025
Previously we were checking if the remote name is there to add it.
Now, if the patches_repo url has changed, but we maintain the same
remote_name, this is updated.

For doing this, we just check if the remote_name exists and if the
patches_repo differs from its value. If so, we just remove the remote
so next line below it'd recreate it.

Not it's based on new git_wrapper version that allows to return the
remote dict with its value but also to remove the remote.

Requires: release-depot/git_wrapper#114
eggmaster pushed a commit to release-depot/patch_rebaser that referenced this pull request Apr 2, 2025
Previously we were checking if the remote name is there to add it.
Now, if the patches_repo url has changed, but we maintain the same
remote_name, this is updated.

For doing this, we just check if the remote_name exists and if the
patches_repo differs from its value. If so, we just remove the remote
so next line below it'd recreate it.

Not it's based on new git_wrapper version that allows to return the
remote dict with its value but also to remove the remote.

Requires: release-depot/git_wrapper#114
@evallesp evallesp deleted the add-remove-remote branch April 7, 2025 10:02
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