-
Notifications
You must be signed in to change notification settings - Fork 12
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
use isomorphic-git to fetch origin, branch, etc instead of shell-js #29
Comments
I'm +1 for removing Maybe we can just add |
i suggest we add said functionality and the |
it seems we don't need the GitUtils anywhere as in helix-cli. maybe we move it back? also see my interim fix for the cwd problem: |
resolved via PR #52 |
Is your feature request related to a problem? Please describe.
GitUtils uses shell-js to execute git commands to retrieve basic information like remote origin and current branch. this has certain drawbacks:
git
commandadvantage:
Describe the solution you'd like
Use isomorphic-git (or similar). Since we currently only need a read-only operations, this might be overkill, as it comes with many dependencies. however, we use isomorphic-git also in git-server, so it would already be present in the cli.
Alternative
helix-cli
, so thathelix-shared
stays smallgit information that is read during up, deploy, etc:
git status --porcelain
)git rev-parse --abbrev-ref HEAD
)git config --get remote.origin.url
)git rev-parse HEAD
)The text was updated successfully, but these errors were encountered: