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

clone_from/push_to: Improve consistency between actions. #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mithro
Copy link
Collaborator

@mithro mithro commented May 21, 2021

Make consistent the following;

  • Wording in output.
  • Checking of inputs.
  • Git environment variables.
  • Quoting of command line arguments.
  • How optional arguments are given to git using GIT_ARGS.

Signed-off-by: Tim 'mithro' Ansell [email protected]

Make consistent the following;
 * Wording in output.
 * Checking of inputs.
 * Git environment variables.
 * Quoting of command line arguments.
 * How optional arguments are given to git using `GIT_ARGS`.

Signed-off-by: Tim 'mithro' Ansell <[email protected]>
@@ -40,22 +42,23 @@ runs:
cat ~/.gitconfig

# Checkout if needed
if [[ '${{ inputs.checkout }}' != 'true' ]]; then
GIT_CLONE_ARGS="--no-checkout"
export GIT_ARGS=''

Choose a reason for hiding this comment

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

Minor nit: the quote types should match the rest of the file. It looks like in most cases we're doing ". Other than that this looks good to me.

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