1
0
mirror of https://github.com/git/git.git synced 2024-09-28 12:21:46 +02:00

remote-helpers: trivial style fixes

In accordance with pep8.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Felipe Contreras 2013-08-28 14:23:11 -05:00 committed by Junio C Hamano
parent 2a6981833d
commit 670dda85d6
2 changed files with 3 additions and 3 deletions

View File

@ -488,7 +488,7 @@ class CustomTree():
add_entry(fid, dirname, 'directory')
return fid
def add_entry(fid, path, kind, mode = None):
def add_entry(fid, path, kind, mode=None):
dirname, basename = os.path.split(path)
parent_fid = get_parent(dirname, basename)
@ -509,7 +509,7 @@ class CustomTree():
self.files[path] = [change[0], None]
changes.append(change)
def update_entry(fid, path, kind, mode = None):
def update_entry(fid, path, kind, mode=None):
dirname, basename = os.path.split(path)
parent_fid = get_parent(dirname, basename)

View File

@ -1066,7 +1066,7 @@ def do_export(parser):
author, msg = parsed_tags.get(tag, (None, None))
if mode == 'git':
if not msg:
msg = 'Added tag %s for changeset %s' % (tag, node[:12]);
msg = 'Added tag %s for changeset %s' % (tag, node[:12])
tagnode, branch = write_tag(parser.repo, tag, node, msg, author)
p_revs[tagnode] = 'refs/heads/branches/' + gitref(branch)
else: