diff --git a/git_archive_all.py b/git_archive_all.py index 8903814..3c1331f 100755 --- a/git_archive_all.py +++ b/git_archive_all.py @@ -316,9 +316,9 @@ def walk_git_files(self, repo_path=''): self.run_shell("git submodule update", repo_abspath) try: - repo_gitmodules_path = path.join(repo_abspath, ".gitmodules") + repo_gitmodules_abspath = path.join(repo_abspath, ".gitmodules") - with open(repo_gitmodules_path) as f: + with open(repo_gitmodules_abspath) as f: lines = f.readlines() for l in lines: