Skip to content

Commit

Permalink
Update versioninforeader.py
Browse files Browse the repository at this point in the history
Fix for Windows fixes smessmer#1
  • Loading branch information
DeeFuse authored Feb 12, 2019
1 parent 85c2cbb commit c0466fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gitversionbuilder/versioninforeader.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def from_git(git_directory):

def _total_number_of_commits_in_cwd():
try:
with open('/dev/null', 'w') as devnull:
with open(os.devnull, 'w') as devnull:
return int(subprocess.check_output(["git", "rev-list", "HEAD", "--count"], stderr=devnull))
except subprocess.CalledProcessError:
return 0
Expand Down

0 comments on commit c0466fa

Please sign in to comment.