+
Skip to content

Conversation

nelsonni
Copy link
Member

Description:

Changes default behavior of cloneRepo to return true unless the stderr output stream contains error or warning messages besides the Cloning into '.*'... pattern indicated for successful cloning.

This PR resolves #968, and signifies the following version changes (per Semantic Version):

  • PATCH version increase

Changes:

This PR makes the following changes:

  • Checkout stderr output stream of git clone command in cloneRepo to determine if error or warning messages besides the Cloning into '.*'... pattern appeared (which would indicate a failed clone operation).
  • Throw ENOENT error on non-existent parent directory for dir parameter to cloneRepo

Checklist:

Before submitting this PR, I have verified that my code:

  • Resides on a fix/ or feature/ branch that was initially branched off from development.
  • Passes code linting (yarn lint) and unit testing (yarn test).
  • Successfully builds a distribution package (yarn package).
  • I have read and am aware of the CONTRIBUTING guide for this project.
  • My name is listed in the Contributors section, or this PR includes a request to add my name.

@nelsonni nelsonni added bug Bug reports or bug fixes feature Feature requests or improvements labels Oct 14, 2022
@nelsonni nelsonni merged commit 31e4d16 into main Oct 14, 2022
@nelsonni nelsonni deleted the bugfix/cloneFailedSuccessfully branch October 14, 2022 20:22
nelsonni added a commit that referenced this pull request Dec 7, 2022
… command (#970)

* Throw error on non-existent parent directory for cloneRepo parameter

* Default to true on cloneRepo when no error messages are found in stderr output stream

* Remove defined by never used `isDefined`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug reports or bug fixes feature Feature requests or improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cloning results in Error: Cloning failed on successfully cloned repositories

1 participant

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载