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

Fix delete_remote_branches #27

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

cleithner-comcast
Copy link
Contributor

delete_remote_branches formatted remote
branch refs with an extra single quote
around each branch. These would never
match the branch strings stored in
stack entries, so remote branches would
never get deleted. This commit removes
the extra single quotes.

delete_remote_branches formatted remote
branch refs with an extra single quote
around each branch. These would never
match the branch strings stored in
stack entries, so remote branches would
never get deleted. This commit removes
the extra single quotes.
@cleithner-comcast
Copy link
Contributor Author

I submitted two PRs fixing issues I found with the tool while using it for the first time today. Happy to modify anything according to contributing guidelines. Other than testing using the tool on my own project, I did not test it in any other way.

@ZolotukhinM ZolotukhinM mentioned this pull request Oct 5, 2024
@ZolotukhinM ZolotukhinM merged commit 3161fcb into modularml:main Oct 5, 2024
@ZolotukhinM
Copy link
Collaborator

Thank you for the fixes, I merged this one and left some comments on the other one!

ZolotukhinM added a commit that referenced this pull request Oct 12, 2024
GitHub deletes the remote branch automatically when the PR is merged, so
we don't to explicitly do that. Trying to delete it currently results in
an error like this:
```
error: unable to delete 'ZolotukhinM/stack/1': remote ref does not exist
error: failed to push some refs to '...'
```
The code for deleting the branch has been sitting there for a long time,
but until a fix in #27 it used incorrect branch names.
ZolotukhinM added a commit that referenced this pull request Oct 12, 2024
GitHub deletes the remote branch automatically when the PR is merged, so
we don't to explicitly do that. Trying to delete it currently results in
an error like this:
```
error: unable to delete 'ZolotukhinM/stack/1': remote ref does not exist
error: failed to push some refs to '...'
```
The code for deleting the branch has been sitting there for a long time,
but until a fix in #27 it used incorrect branch names.

stack-info: PR: #42, branch: ZolotukhinM/stack/1
ZolotukhinM added a commit that referenced this pull request Oct 12, 2024
GitHub deletes the remote branch automatically when the PR is merged, so
we don't to explicitly do that. Trying to delete it currently results in
an error like this:
```
error: unable to delete 'ZolotukhinM/stack/1': remote ref does not exist
error: failed to push some refs to '...'
```
The code for deleting the branch has been sitting there for a long time,
but until a fix in #27 it used incorrect branch names.
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.

2 participants