Closed baer95 closed 5 years ago
I am seeing the following error:
error: pathspec 'master' did not match any file(s) known to git.
in this line: https://github.com/greenkeeperio/greenkeeper-lockfile/blob/master/lib/git-helpers.js#L47
As explained in https://stackoverflow.com/questions/5989592/git-cannot-checkout-branch-error-pathspec-did-not-match-any-files-kn#comment38395576_7334027, the default value for defaultBranch should therefore not be master but origin/master.
defaultBranch
master
origin/master
As a workaround the environment-variable GK_LOCK_DEFAULT_BRANCH can be set to origin/master.
GK_LOCK_DEFAULT_BRANCH
I am seeing the following error:
in this line: https://github.com/greenkeeperio/greenkeeper-lockfile/blob/master/lib/git-helpers.js#L47
As explained in https://stackoverflow.com/questions/5989592/git-cannot-checkout-branch-error-pathspec-did-not-match-any-files-kn#comment38395576_7334027, the default value for
defaultBranch
should therefore not bemaster
butorigin/master
.As a workaround the environment-variable
GK_LOCK_DEFAULT_BRANCH
can be set toorigin/master
.