Skip to content

Commit

Permalink
fix basename on windows
Browse files Browse the repository at this point in the history
By using the functions from the os package we keep the code portable.
Fixes issue tomster#9
  • Loading branch information
rnestler committed May 21, 2015
1 parent 894eb41 commit 4d5b403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitsvnhelpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def basename():
return popen('basename $PWD', False, False)[1][0]
return os.path.basename(os.getcwd())


def is_git():
Expand Down

0 comments on commit 4d5b403

Please sign in to comment.