Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
spderosso committed Oct 9, 2016
2 parents 5cc11e6 + c125eec commit 06fa3c4
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

cd ~

git clone --depth=1 -b maint/v0.23 https://github.com/libgit2/libgit2.git
git clone --depth=1 -b maint/v0.24 https://github.com/libgit2/libgit2.git
cd libgit2/

mkdir build && cd build
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: python

python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "pypy"

env: LIBGIT2=~/libgit2/_install/ LD_LIBRARY_PATH=~/libgit2/_install/lib
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ the Python Package Index).

### Installing from source

To install from source you need to have Python (2.6, 2.7, 3.2+ or pypy)
To install from source you need to have Python (2.7, 3.2+ or pypy)
installed.

Additionaly, you need to [install pygit2 (v0.23.0)](
Additionaly, you need to [install pygit2](
http://www.pygit2.org/install.html "pygit2 install").

Then, [download the source code tarball](http://gitless.com "Gitless's website")
Expand All @@ -69,9 +69,9 @@ and do:

If you are a Python fan you might find it easier to install
Gitless via the Python Package Index. To do this, you need to have
Python (2.6, 2.7, 3.2+ or pypy) installed.
Python (2.7, 3.2+ or pypy) installed.

Additionaly, you need to [install pygit2 (v0.23.0)](
Additionaly, you need to [install pygit2](
http://www.pygit2.org/install.html "pygit2 install").

Then, just do:
Expand Down Expand Up @@ -114,4 +114,4 @@ Gitless's code so that your edits are consistent with the codebase

- Finally, if you don't want [Travis](
https://travis-ci.org/sdg-mit/gitless "Travis") to
be mad at you, check that tests pass in python 2.6, 2.7 and 3.2+
be mad at you, check that tests pass in Python 2.7 and 3.2+
9 changes: 7 additions & 2 deletions gitless/cli/commit_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,13 @@ def _launch_editor(fp, repo):
except KeyError:
editor = os.environ['EDITOR'] if 'EDITOR' in os.environ else 'vim'

if subprocess.call([editor, fp]) != 0:
raise Exception('Call to editor {0} failed'.format(editor))
try:
ret = subprocess.call([editor, fp])
if ret != 0:
pprint.err('Call to editor {0} failed'.format(editor))
except OSError:
pprint.err('Couldn\'t launch editor {0}'.format(editor))
pprint.err_exp('change the value of git\'s core.editor setting')


def _extract_msg(repo):
Expand Down
9 changes: 6 additions & 3 deletions gitless/cli/gl.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@
INTERNAL_ERROR = 3
NOT_IN_GL_REPO = 4

VERSION = '0.8.3'
VERSION = '0.8.4'
URL = 'http://gitless.com'


repo = None
try:
repo = core.Repository()
colored.DISABLE_COLOR = (repo.config['color.ui'] in
['false', '0', 'off', 'no', 'never'])
try:
colored.DISABLE_COLOR = not repo.config.get_bool('color.ui')
except pygit2.GitError:
colored.DISABLE_COLOR = (
repo.config['color.ui'] in ['no', 'never'])
except (core.NotInRepoError, KeyError):
pass

Expand Down
9 changes: 9 additions & 0 deletions gitless/cli/gl_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ def main(args, repo):
if args.p:
partials = _do_partial_selection(commit_files, curr_b)

if not repo.config['user.name']:
pprint.err('Missing name for commit author')
pprint.err_exp('change the value of git\'s user.name setting')
return False
if not repo.config['user.email']:
pprint.err('Missing email for commit author')
pprint.err_exp('change the value of git\'s user.email setting')
return False

msg = args.m if args.m else commit_dialog.show(commit_files, repo)
if not msg.strip():
if partials:
Expand Down
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from setuptools import setup


VERSION = '0.8.3'
VERSION = '0.8.4'


# Build helper
Expand Down Expand Up @@ -54,9 +54,6 @@
More info, downloads and documentation @ `Gitless's
website <http://gitless.com>`__.
Questions or comments about Gitless can be sent to the `Gitless users
mailing list <https://groups.google.com/forum/#!forum/gl-users>`__.
"""

setup(
Expand Down

0 comments on commit 06fa3c4

Please sign in to comment.