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

reviewdog: failed to get merge-base commit: exit status 1 #1549

Open
hapi666 opened this issue Aug 30, 2023 · 2 comments
Open

reviewdog: failed to get merge-base commit: exit status 1 #1549

hapi666 opened this issue Aug 30, 2023 · 2 comments

Comments

@hapi666
Copy link

hapi666 commented Aug 30, 2023

env:

reviewdog version: 0.14.2 
golangci-lint version: v1.52.2
golang version: 1.20.2

.gitlab-ci.yml:

  script:
    - set +o pipefail
    - golangci-lint --version
    - git fetch
    - reviewdog -reporter=gitlab-mr-discussion -tee

gitlab ci error message:

reviewdog: failed to get merge-base commit: exit status 1
@artemskriabin
Copy link

Also stuck with that.
Your branch does not have common commits with target branch. Do rebase, because merge returns fatal: refusing to merge unrelated histories.

@mkdym
Copy link

mkdym commented Jan 23, 2024

Add variables worked for me:

GIT_STRATEGY: clone
GIT_DEPTH: 0

refrence: https://kiririmode.hatenablog.jp/entry/20220327/1648344999

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

No branches or pull requests

3 participants