gitversion icon indicating copy to clipboard operation
gitversion copied to clipboard

/dev/null doesn't exist on Windows but os.devnull does

Open shrewmouse1 opened this issue 7 years ago • 1 comments

In versioninforeader.py change line 42 from

with open('/dev/null', 'w') as devnull:

with open(os.devnull, 'w') as devnull:

shrewmouse1 avatar Nov 27 '17 21:11 shrewmouse1

same with me during pip install:

line 42, in _total_number_of_commits_in_cwd with open('/dev/null', 'w') as devnull: FileNotFoundError: [Errno 2] No such file or directory: '/dev/null'

Roman-Bober avatar Apr 30 '20 07:04 Roman-Bober