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

Fix error when trying to get diff with nil parent #176

Closed
wants to merge 2 commits into from
Closed

Fix error when trying to get diff with nil parent #176

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 7, 2014

Every initial commit have no parent, thus if you try to fetch full log, you'll receive error like this:
git diff '--numstat' 'f5baa11a1c82dc42ade5c291e9f061c13b66bc2f' '' 2>&1:fatal: ambiguous argument ''

To fix this we can use git show command if current object have no parent. This command can accept all options from git diff, the only difference is that we should not pass (empty) parent commit hash.

@robertodecurnex robertodecurnex added this to the 1.2.9 milestone Dec 4, 2014
@robertodecurnex robertodecurnex self-assigned this Dec 4, 2014
@robertodecurnex
Copy link
Contributor

Related to #25

@robertodecurnex robertodecurnex modified the milestone: 1.2.9 Jan 12, 2015
@stale
Copy link

stale bot commented Apr 1, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 1, 2018
@stale stale bot closed this Apr 8, 2018
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

Successfully merging this pull request may close these issues.

None yet

1 participant