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

putup is running redundant git commands #600

Open
julie777 opened this issue Feb 13, 2022 · 3 comments
Open

putup is running redundant git commands #600

julie777 opened this issue Feb 13, 2022 · 3 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@julie777
Copy link

Description of your problem

Please provide a minimal, self-contained, and reproducible example.
Just run with --very-verbose.

Please provide the full traceback using the --very-verbose flag.

    activate  pyscaffold.extensions.venv
    activate  pyscaffoldext.markdown.extension
      invoke  pyscaffold.actions:get_default_options
         run    git.exe --version
         run    git.exe --version
         run    git.exe config --get user.name
         run    git.exe config --get user.email
         run    git.exe config --get user.name
         run    git.exe config --get user.email
      invoke  pyscaffold.actions:verify_options_consistency

Please provide any additional information below.

Versions and main components

  • PyScaffold Version: 4.1.4
  • Python Version: 3.10.2
  • Operating system: Window 10/git bash
  • How did you install PyScaffold: pipx
@abravalheri
Copy link
Collaborator

Yeap, nice catch. Any ideas on how to improve this?

@abravalheri abravalheri added the enhancement New feature or request label Feb 14, 2022
@julie777
Copy link
Author

I haven't had time to really look into it.

My impression from what I remember in the code is that we don't have a well defined initialization phase, so some parts of pysk just check preconditions before they run something, which doesn't matter for most things, but for external commands runs them multiple times. (I hope the abbreviation is okay. I get tired of typing it out.)

@FlorianWilhelm FlorianWilhelm added the bug Something isn't working label Feb 15, 2022
@FlorianWilhelm
Copy link
Member

Good point! That looks like a bug I guess, no reason to call it two times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants