Skip to content

#push without args should do same as git push without args #636

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

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

jcouball
Copy link
Member

@jcouball jcouball commented Mar 2, 2023

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

  • Ensure all commits include DCO sign-off.
  • Ensure that your contributions pass unit testing.
  • Ensure that your contributions contain documentation if applicable.

Description

Git::Lib#push with no args currently performs git push origin master. It sets the remote name to 'origin' and the branch to pull to 'master' (even if there is no branch named 'master'). This probably isn't what the user expects and can cause errors or undesired results.

git push with no args figures out defaults for the remote name and branch name to use. Git::Lib#push should have the same behavior.

Signed-off-by: James Couball <jcouball@yahoo.com>
@jcouball jcouball merged commit 0c908da into master Mar 2, 2023
@jcouball jcouball deleted the push_with_no_options branch March 2, 2023 16:09
@jcouball jcouball changed the title #push without args should do same as git push with no args #push without args should do same as git push without args Mar 2, 2023
This was referenced Mar 4, 2023
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.

1 participant