Skip to content

Commit

Permalink
read_git_shell -> run_git_shell
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentzo committed Mar 3, 2017
1 parent 32a7f90 commit 6c9b458
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git_archive_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(self, prefix='', exclude=True, force_sub=False, extra=None, main_re
raise ValueError("main_repo_abspath must be an absolute path")

try:
main_repo_abspath = path.abspath(self.read_git_shell('git rev-parse --show-toplevel', main_repo_abspath).rstrip())
main_repo_abspath = path.abspath(self.run_git_shell('git rev-parse --show-toplevel', main_repo_abspath).rstrip())
except CalledProcessError:
raise ValueError("{} is not part of a git repository".format(main_repo_abspath))

Expand Down Expand Up @@ -196,7 +196,7 @@ def read_attributes(attributes_abspath):

# There may be no gitattributes.
try:
global_attributes_abspath = self.read_git_shell("git config --get core.attributesfile", repo_abspath).rstrip()
global_attributes_abspath = self.run_git_shell("git config --get core.attributesfile", repo_abspath).rstrip()
exclude_patterns[()] = read_attributes(global_attributes_abspath)
except:
# And it's valid to not have them.
Expand Down Expand Up @@ -290,7 +290,7 @@ def walk_git_files(self, repo_path=''):
@rtype: Iterable
"""
repo_abspath = path.join(self.main_repo_abspath, repo_path)
repo_file_paths = self.read_git_shell(
repo_file_paths = self.run_git_shell(
"git ls-files --cached --full-name --no-empty-directory",
repo_abspath
).splitlines()
Expand Down

0 comments on commit 6c9b458

Please sign in to comment.