Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Git command issue on travis-ci.org #90

Open
demizer opened this issue Apr 17, 2017 · 7 comments
Open

Git command issue on travis-ci.org #90

demizer opened this issue Apr 17, 2017 · 7 comments

Comments

@demizer
Copy link

demizer commented Apr 17, 2017

Hello! I am getting the following issue on travis-ci.org:

5.83s$ goveralls -service=travis-ci -v -package ./pkg/... -repotoken $COVERALLS_TOKEN
08:51:15 gitinfo.go:68: exit status 1: global arguments:
map[--exec-path:<nil> --paginate:false -c:<nil> <command>:log --bare:false --git-dir:<nil> --work-tree:<nil> --help:false --version:false --html-path:false --no-pager:false --no-replace-objects:false <args>:[-1 --pretty=%aN]]
command arguments:
log is not a git command. See 'git help'
The command "goveralls -service=travis-ci -v -package ./pkg/... -repotoken $COVERALLS_TOKEN" exited with 1.

Git is installed in the travis-ci container though:

0.01s$ git log
commit 9aa0e2fbdf223bf1a7abc05ae86f2f221b3036f6
Merge: 91efb8a 8cbe791
Author: Jesus Alvarez <jeezusjr@gmail.com>
Date:   Mon Apr 17 08:46:58 2017 +0000
    Merge 8cbe79127b4440f6c5458bcdde7e64b4960d9125 into 91efb8a00ded54c385f9c3a400e67adf4dcc7ae0

NOTE: I do not have this problem when running locally.

Here is the goveralls comit cloned on travis-ci.org:

$ cd $GOPATH/src/github.com/mattn/goveralls
The command "cd $GOPATH/src/github.com/mattn/goveralls" exited with 0.
0.01s$ git log
commit 42c8a693f7f0977d9e17901324a9dd149a0f71f6
Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Date:   Mon Apr 17 17:53:42 2017 +0900
    support multiple coverprofile

Thanks!

@mattn
Copy link
Owner

mattn commented Apr 18, 2017

Could you please show me your .travis.yml?

@demizer
Copy link
Author

demizer commented Apr 18, 2017

Hi. Apologies for not adding this to begin with...

language: go
before_install:
  - go get github.com/mattn/goveralls
script:
  - go test -v ./pkg/...
  - goveralls -service=travis-ci -v -package ./pkg/... -repotoken $COVERALLS_TOKEN || true

The repo is at https://github.com/demizer/go-rst/blob/scanner_refactor/.travis.yml

Thanks!

@demizer
Copy link
Author

demizer commented Apr 18, 2017

The travis-ci file above has been merged to master (https://github.com/demizer/go-rst/blob/master/.travis.yml).

Goveralls is still showing an error on the git command for the last build: https://travis-ci.org/demizer/go-rst/builds/223057070

Thanks!

@mattn
Copy link
Owner

mattn commented Apr 18, 2017

I git clone your repository and tried same line in the .travis.yml. but not repro.

@demizer
Copy link
Author

demizer commented Apr 18, 2017

It seems it is happening only in travis-ci.org for this repo, I am unsure why. I can also not reproduce on the command line. Is there any debugging I can enable to diagnose the issue on travis-ci.org?

@mattn
Copy link
Owner

mattn commented Apr 19, 2017

Is there any debugging I can enable to diagnose the issue on travis-ci.org?

Sorry, I don't know.

log is not a git command. See 'git help'

Possibly, git-log seems not be there.

@gdm85
Copy link
Collaborator

gdm85 commented Oct 30, 2020

@demizer try running git help and git version to figure out what is being used there. In future the new environment variables I propose here might help as well.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants