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

Expected a value greater than 0. Got: 0 #179

Closed
luchianenco opened this issue Jan 31, 2018 · 7 comments
Closed

Expected a value greater than 0. Got: 0 #179

luchianenco opened this issue Jan 31, 2018 · 7 comments

Comments

@luchianenco
Copy link

Installed the package, my code is in src folder. Executed the command

bin/churn run src

and got the error

Expected a value greater than 0. Got: 0

What is wrong?

@bmitch
Copy link
Owner

bmitch commented Jan 31, 2018

Hey @luchianenco, is it possible you do not have a .git folder in your project? This has come up one time previously and this was the issue. See the comment here: #127 (comment)

If you do have a .git folder and this is still happening could you please provide more details?

  • Is there more to the error message than that such as the offending class and line number?
  • Is your package open source? If so, I could clone and attempt to duplicate myself.

Thanks.

@steache
Copy link

steache commented Feb 19, 2018

I've encountered the problem too.

The problem for me was, that you have to be in the folder, where your .git folder is.

Given you have source codes in /home/example/(.git, src), you have to be in /home/example/ in order to run churn run src successfully. :)

I hope this helps someone. Nice project btw. :)

@saikillua98
Copy link

Mine project use svn,so how should i do make it works ,thanks!!!!!!

@bmitch
Copy link
Owner

bmitch commented Jan 28, 2019

Sorry @saikillua98 - SVN is not supported, only git. See https://github.com/bmitch/churn-php#compatibility

@ilyachase
Copy link

ilyachase commented Mar 7, 2019

Maybe we can add another optional parameter for path to directory which contain .git?

I think it may be pretty simple to fix using chdir.

Or we even can check .git in current directory before start (does it even make sense to start processing if we don't have it?).

@bmitch
Copy link
Owner

bmitch commented Mar 17, 2019

@ilyachase those sound like good ideas. I'm open to pull requests. Currently I do not have much time to work on it unfortunately.

@villfa
Copy link
Collaborator

villfa commented Nov 13, 2020

#261 fixes the original problem.

Given you have source codes in /home/example/(.git, src), you have to be in /home/example/ in order to run churn run src successfully. :)

This problem has been fixed by #257. You can now run Churn from outside your project..

@villfa villfa closed this as completed Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants