Skip to content

Commit 06fa3c4

Browse files
committed
Merge branch 'develop'
2 parents 5cc11e6 + c125eec commit 06fa3c4

7 files changed

Lines changed: 30 additions & 16 deletions

File tree

.travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
cd ~
44

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

88
mkdir build && cd build

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
language: python
22

33
python:
4-
- "2.6"
54
- "2.7"
65
- "3.2"
76
- "3.3"
87
- "3.4"
8+
- "3.5"
99
- "pypy"
1010

1111
env: LIBGIT2=~/libgit2/_install/ LD_LIBRARY_PATH=~/libgit2/_install/lib

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ the Python Package Index).
5353

5454
### Installing from source
5555

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

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

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

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

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

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

115115
- Finally, if you don't want [Travis](
116116
https://travis-ci.org/sdg-mit/gitless "Travis") to
117-
be mad at you, check that tests pass in python 2.6, 2.7 and 3.2+
117+
be mad at you, check that tests pass in Python 2.7 and 3.2+

gitless/cli/commit_dialog.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,13 @@ def _launch_editor(fp, repo):
6868
except KeyError:
6969
editor = os.environ['EDITOR'] if 'EDITOR' in os.environ else 'vim'
7070

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

7479

7580
def _extract_msg(repo):

gitless/cli/gl.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,18 @@
2929
INTERNAL_ERROR = 3
3030
NOT_IN_GL_REPO = 4
3131

32-
VERSION = '0.8.3'
32+
VERSION = '0.8.4'
3333
URL = 'http://gitless.com'
3434

3535

3636
repo = None
3737
try:
3838
repo = core.Repository()
39-
colored.DISABLE_COLOR = (repo.config['color.ui'] in
40-
['false', '0', 'off', 'no', 'never'])
39+
try:
40+
colored.DISABLE_COLOR = not repo.config.get_bool('color.ui')
41+
except pygit2.GitError:
42+
colored.DISABLE_COLOR = (
43+
repo.config['color.ui'] in ['no', 'never'])
4144
except (core.NotInRepoError, KeyError):
4245
pass
4346

gitless/cli/gl_commit.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ def main(args, repo):
4848
if args.p:
4949
partials = _do_partial_selection(commit_files, curr_b)
5050

51+
if not repo.config['user.name']:
52+
pprint.err('Missing name for commit author')
53+
pprint.err_exp('change the value of git\'s user.name setting')
54+
return False
55+
if not repo.config['user.email']:
56+
pprint.err('Missing email for commit author')
57+
pprint.err_exp('change the value of git\'s user.email setting')
58+
return False
59+
5160
msg = args.m if args.m else commit_dialog.show(commit_files, repo)
5261
if not msg.strip():
5362
if partials:

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from setuptools import setup
88

99

10-
VERSION = '0.8.3'
10+
VERSION = '0.8.4'
1111

1212

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

6259
setup(

0 commit comments

Comments
 (0)