Re: [openstack-dev] gertty and git diff -U problem

2016-02-28 Thread Neil Jerram
FYI, all working fine after 'pip install GitPython=1.0.1' (in the virtualenv).


  Original Message
From: Neil Jerram
Sent: Sunday, 28 February 2016 20:42
To: Jeremy Stanley; OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] gertty and git diff -U problem


Thanks Jeremy! I'll try those solutions.

  Original Message
From: Jeremy Stanley
Sent: Sunday, 28 February 2016 19:57
To: OpenStack Development Mailing List (not for usage questions)
Reply To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] gertty and git diff -U problem


On 2016-02-28 19:33:29 + (+), Neil Jerram wrote:
> I've just tried to start using gertty, installed in a virtualenv
> using 'pip install gertty' - which means I have version 1.3.1.
[...]
> Any recommendations for getting past this? I think it's to do with
> git-diff not liking the space between -U and 1.

It's due to a non-backwards-compatible behavior change in GitPython,
rather than a bug in Gertty itself:
https://github.com/gitpython-developers/GitPython/issues/382

You might try rolling back to GitPython 1.0.1 in your environment to
to work around it temporarily, or update to Gertty's master branch
which avoids installing 1.0.2 and later via
https://review.openstack.org/279582
--
Jeremy Stanley

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] gertty and git diff -U problem

2016-02-28 Thread Neil Jerram
Thanks Jeremy! I'll try those solutions.

  Original Message
From: Jeremy Stanley
Sent: Sunday, 28 February 2016 19:57
To: OpenStack Development Mailing List (not for usage questions)
Reply To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] gertty and git diff -U problem


On 2016-02-28 19:33:29 + (+), Neil Jerram wrote:
> I've just tried to start using gertty, installed in a virtualenv
> using 'pip install gertty' - which means I have version 1.3.1.
[...]
> Any recommendations for getting past this? I think it's to do with
> git-diff not liking the space between -U and 1.

It's due to a non-backwards-compatible behavior change in GitPython,
rather than a bug in Gertty itself:
https://github.com/gitpython-developers/GitPython/issues/382

You might try rolling back to GitPython 1.0.1 in your environment to
to work around it temporarily, or update to Gertty's master branch
which avoids installing 1.0.2 and later via
https://review.openstack.org/279582
--
Jeremy Stanley

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] gertty and git diff -U problem

2016-02-28 Thread Jeremy Stanley
On 2016-02-28 19:33:29 + (+), Neil Jerram wrote:
> I've just tried to start using gertty, installed in a virtualenv
> using 'pip install gertty' - which means I have version 1.3.1.
[...]
> Any recommendations for getting past this? I think it's to do with
> git-diff not liking the space between -U and 1.

It's due to a non-backwards-compatible behavior change in GitPython,
rather than a bug in Gertty itself:
https://github.com/gitpython-developers/GitPython/issues/382

You might try rolling back to GitPython 1.0.1 in your environment to
to work around it temporarily, or update to Gertty's master branch
which avoids installing 1.0.2 and later via
https://review.openstack.org/279582
-- 
Jeremy Stanley

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] gertty and git diff -U problem

2016-02-28 Thread Neil Jerram
I've just tried to start using gertty, installed in a virtualenv using 'pip 
install gertty' - which means I have version 1.3.1.

When I try to look at any Diff, though, I get a traceback ending with:

git.exc.GitCommandError: 'git diff --color=never -U 1 [...]' returned with 
exit code 128
stderr: 'fatal: ambiguous argument '1': unknown revision or path not in the 
working tree.
Use '--' to separate paths from revisions, like this:
'git  [] -- [...]'
'

Any recommendations for getting past this? I think it's to do with git-diff not 
liking the space between -U and 1.

Thanks,
  Neil

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev