Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Don't touch Git if a branch is specified #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

villermen
Copy link

Right now the current Git branch is retrieved even when a branch is manually supplied on the command line. This causes an error if you're not inside of Git repository. This PR fixes that by only checking the Git branch when it's actually needed.

Also removes the promise used in an async context because it's redundant.

Builds upon #28 because I'm using these fixes. Merge it first or cherry-pick the right commit here.

@coveralls
Copy link

coveralls commented Mar 25, 2020

Pull Request Test Coverage Report for Build 358

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 97.255%

Totals Coverage Status
Change from base Build 268: -0.02%
Covered Lines: 201
Relevant Lines: 205

💛 - Coveralls

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants