Skip to content

Commit

Permalink
Use os.curdir to get portable version of '.'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentzo committed Aug 4, 2015
1 parent cf4582c commit 0c3b93d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions git-archive-all
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ from __future__ import unicode_literals
__version__ = "1.9"

import logging
from os import extsep, path, readlink
from os import extsep, path, readlink, curdir
from subprocess import CalledProcessError, Popen, PIPE
import sys
import tarfile
Expand Down Expand Up @@ -332,8 +332,7 @@ class GitArchiver(object):
if tail:
components.insert(0, tail)

# Get portable version of '.'
components.insert(0, path.relpath(repo_abspath, repo_abspath))
components.insert(0, curdir)
return components

@staticmethod
Expand Down

0 comments on commit 0c3b93d

Please sign in to comment.