-
Notifications
You must be signed in to change notification settings - Fork 92
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
fatal: Not a git repository (or any of the parent directories): .git #38
Comments
Just an update, I figured out what was going on. We were using the Capistrano So now that I have a git repo, the ruby-test-reporter is happy, but I've ran into another issue. It looks like when you setup a CodeClimate account, you specify a branch to look at. I would assume that the majority of projects point to master when using git. When sending the test report branch to Code Climate it looks like it uses the current branch of the git repo. So here's my current problem, the Capistrano checkout strategy does this: # checkout into a local branch rather than a detached HEAD
execute << "cd #{destination} && #{git} checkout #{verbose} -b deploy #{revision}" Look at the source here: http://ruby-doc.org/gems/docs/c/capistrano-edge-2.5.6/Capistrano/Deploy/SCM/Git.html#method-i-checkout So when Jenkins runs the tests, here's what it sends to Code Climate:
|
Hi @tielur -- you could try specifing the git branch as an environment variable as well. See: |
Closing, this is more of an issue with the project Capistrano deployment setup then an issue with this gem. Thanks |
I'm receiving a similar error in my gem https://github.com/NullVoxPopuli/authorizable
why does it want my dummy rails app to be a git repo? |
Not sure whether to open a new issue or request a re-open? We're also seeing this (on 0.4.5), but for a slightly different reason: I'm a little confused, because:
For the sake of this issue, I suppose a good start would be a clarification in the docs that a ¹ although the docs do allude to its existence, stating:
|
I'm currently getting this issue when running tests. We use capistrano to deploy our code and we are using these settings:
set :deploy_via, :copy
set :copy_strategy, :export
Which allows us to push our code to our web servers without needing them to connect to our git servers and pull code. It basically does a sftp. more info
Unfortunately this means that there is not a git repository at the time the tests are run. Which it looks like the Formatter.to_payload uses as well as the PayloadValidator
I guess my question is does CodeClimate need this git repo information in order to function correctly? If not, how should we go about fixing this so it's not required to be run inside a git repository.
Also, is anyone else using this capistrano deploy method?
Logs:
The text was updated successfully, but these errors were encountered: